Skip to content

TraceTracker Class

Definition

Tracker which handles all Trace Telemetry to Application Insights.

C#
[Obsolete("Telemetry is deprecated. See the upgrade guide at https://sqtechdocs.azurewebsites.net/docs/tooltelemetry/index.html")]
public sealed class TraceTracker : DynamicTracker, IDynamicMetaObjectProvider

Inheritance objectDynamicObjectDynamicTracker

Implements IDynamicMetaObjectProvider

Constructors

TraceTracker(SeverityLevel, TelemetryClient, ConfigurationData, SessionData)

Initializes a new instance of the TraceTracker class.

C#
public TraceTracker(SeverityLevel severityLevel, TelemetryClient telemetryClient, ConfigurationData configuration, SessionData session)

Parameters

severityLevel SeverityLevel
The trace level of the tracker.

telemetryClient TelemetryClient
The underlying Telemetry Client that handles all telemetry events to Application Insights.

configuration ConfigurationData
A structure that contains all configuration settings for telemetry.

session SessionData
A structure that contains session specific information.

Methods

AdditionalDataValidation(IList)

This method is run once at the start of a TryInvokeMethod call and may be implemented by any classes extending DynamicTracker to perform implementation specific data validation of the parameters passed in.

C#
protected override void AdditionalDataValidation(IList<TelemetryProperty> properties)

Parameters

properties IList<TelemetryProperty>
A list of properties from TryInvokeMethod.

Track()

Preforms implementation specific tracking for classes that extend DynamicTracker.

C#
protected override bool Track()

Returns

bool
true if tracking was successful, false otherwise.

CollectCustomData()

Performs implementation specific custom data collection for classes that extend DynamicTracker.

C#
protected override void CollectCustomData()