ITelemetryService.StartOperation Method

Definition

Start tracking user task by posting a OperationEvent at the beginning of user task work, and then return a TelemetryScope<T> object. When the user task finishes, call method Dispose() to post another OperationEvent for end point. Because the same event name is used by both start and end events, please don't use Start or End in event name.

C#
public Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope StartOperation(Microsoft.VisualStudio.ArchitectureTools.Telemetry.TelemetryIdentifier telemetryIdentifier, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.ArchitectureTools.Telemetry.DataPoint> properties = default);

Parameters

properties
IEnumerable<DataPoint>

Optional start event properties

Returns

Applies to

Product Versions
Visual Studio SDK 2019, 2022