Custom Tracking Records
This topic demonstrates how to create custom tracking records and populate them with data to be emitted along with the records.
Emitting Custom Tracking Records
Custom tracking records can be emitted from a code activity as shown in the following example.
protected override void Execute(CodeActivityContext context)
{
…
CustomTrackingRecord customRecord = new CustomTrackingRecord("CustomEmailSentEvent");
customRecord.Data.Add("SendTime", sendTime);
context.Track(customRecord);
}
A CustomTrackingRecord is emitted in a code activity by invoking the Track method on the ActivityContext
.
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for