Udostępnij za pośrednictwem


TraceTelemetry Class

Definition

Telemetry type used for log messages. Contains a time and message and optionally some additional metadata.

public ref class TraceTelemetry sealed : Microsoft::VisualStudio::ApplicationInsights::Channel::ITelemetry, Microsoft::VisualStudio::ApplicationInsights::DataContracts::ISupportProperties
public sealed class TraceTelemetry : Microsoft.VisualStudio.ApplicationInsights.Channel.ITelemetry, Microsoft.VisualStudio.ApplicationInsights.DataContracts.ISupportProperties
type TraceTelemetry = class
    interface ITelemetry
    interface ISupportProperties
Public NotInheritable Class TraceTelemetry
Implements ISupportProperties, ITelemetry
Inheritance
TraceTelemetry
Implements

Constructors

TraceTelemetry()

Initializes a new instance of the TraceTelemetry class.

TraceTelemetry(String, SeverityLevel)

Initializes a new instance of the TraceTelemetry class.

TraceTelemetry(String)

Initializes a new instance of the TraceTelemetry class.

Properties

Context

Gets the context associated with the current telemetry item.

Message

Gets or sets the message text. For example, the text that would normally be written to a log file line.

Properties

Gets a dictionary of application-defined property names and values providing additional information about this trace.

Sequence

Gets or sets the value that defines absolute order of the telemetry item.

SeverityLevel

Gets or sets Trace severity level.

Timestamp

Gets or sets date and time when event was recorded.

Explicit Interface Implementations

ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

Applies to