ITelemetryRecorder.StartOperation Method
Definition
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 an operation by posting an OperationEvent at the beginning of the operation, and then returns a TelemetryScope<T> object. When the operation finishes, call Dispose() to post another OperationEvent for the 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.
public Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope StartOperation (Microsoft.VisualStudio.ArchitectureTools.Telemetry.TelemetryIdentifier telemetryIdentifier, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.ArchitectureTools.Telemetry.DataPoint> properties = default, Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope parentScope = default);
abstract member StartOperation : Microsoft.VisualStudio.ArchitectureTools.Telemetry.TelemetryIdentifier * seq<Microsoft.VisualStudio.ArchitectureTools.Telemetry.DataPoint> * Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope -> Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope
Public Function StartOperation (telemetryIdentifier As TelemetryIdentifier, Optional properties As IEnumerable(Of DataPoint) = Nothing, Optional parentScope As ITelemetryScope = Nothing) As ITelemetryScope
Parameters
- telemetryIdentifier
- TelemetryIdentifier
- properties
- IEnumerable<DataPoint>
Optional start event properties
- parentScope
- ITelemetryScope
Optional ITelemetryScope