Share via


ITelemetryRecorder Interface

Definition

Represents a telementry event recorder.

public interface class ITelemetryRecorder
public interface ITelemetryRecorder
type ITelemetryRecorder = interface
Public Interface ITelemetryRecorder

Methods

RecordEvent(TelemetryEvent)

Records the specified telemetryEvent.

StartOperation(TelemetryIdentifier, IEnumerable<DataPoint>, ITelemetryScope)

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.

StartUserTask(TelemetryIdentifier, IEnumerable<DataPoint>, ITelemetryScope)

Start tracking a user task by posting a UserTaskEvent at the beginning of the user task, and then returns a TelemetryScope<T> object. When the user task finishes, call Dispose() to post another UserTaskEvent 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.

Applies to