Share via


VSTelemetryService Class

Definition

Telemetry service for Visual Studio

public ref class VSTelemetryService : IDisposable, Microsoft::VisualStudio::ArchitectureTools::Telemetry::ITelemetryService
public class VSTelemetryService : IDisposable, Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryService
type VSTelemetryService = class
    interface ITelemetryService
    interface IDisposable
Public Class VSTelemetryService
Implements IDisposable, ITelemetryService
Inheritance
VSTelemetryService
Implements

Constructors

VSTelemetryService()

Creates a new telemetry service for Visual Studio

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean) System.Object.Dispose(System.Boolean)
PostFault(TelemetryIdentifier, String, Exception, IEnumerable<DataPoint>)

Reports a single fault event

PostOperation(TelemetryIdentifier, TelemetryResult, IEnumerable<DataPoint>)

Post a single operation event

PostUserTask(TelemetryIdentifier, TelemetryResult, IEnumerable<DataPoint>)

Post a single user task event

StartOperation(TelemetryIdentifier, IEnumerable<DataPoint>)

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.

StartUserTask(TelemetryIdentifier, IEnumerable<DataPoint>)

Start tracking user task by posting a UserTaskEvent 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 UserTaskEvent 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.

Applies to