ITelemetryService.StartOperation Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
abstract member StartOperation : Microsoft.VisualStudio.ArchitectureTools.Telemetry.TelemetryIdentifier * seq<Microsoft.VisualStudio.ArchitectureTools.Telemetry.DataPoint> -> Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope
Public Function StartOperation (telemetryIdentifier As TelemetryIdentifier, Optional properties As IEnumerable(Of DataPoint) = Nothing) As ITelemetryScope
- telemetryIdentifier
- TelemetryIdentifier
- properties
- IEnumerable<DataPoint>
Optional start event properties
Product | Versions |
---|---|
Visual Studio SDK | 2019, 2022 |