TraceTelemetry TraceTelemetry TraceTelemetry Class


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

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


TraceTelemetry() TraceTelemetry() TraceTelemetry()

Initializes a new instance of the TraceTelemetry class.

TraceTelemetry(String) TraceTelemetry(String) TraceTelemetry(String)

Initializes a new instance of the TraceTelemetry class.

TraceTelemetry(String, SeverityLevel) TraceTelemetry(String, SeverityLevel) TraceTelemetry(String, SeverityLevel)

Initializes a new instance of the TraceTelemetry class.


Context Context Context

Gets the context associated with the current telemetry item.

Extension Extension Extension

Gets or sets gets the extension used to extend this telemetry instance using new strong typed object.

Message Message Message

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

Properties Properties Properties

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

Sequence Sequence Sequence

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

SeverityLevel SeverityLevel SeverityLevel

Gets or sets Trace severity level.

Timestamp Timestamp Timestamp

Gets or sets date and time when event was recorded.


DeepClone() DeepClone() DeepClone()

Deeply clones a TraceTelemetry object.

SerializeData(ISerializationWriter) SerializeData(ISerializationWriter) SerializeData(ISerializationWriter)

Explicit Interface Implementations

ITelemetry.Sanitize() ITelemetry.Sanitize() ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

ISupportSampling.SamplingPercentage ISupportSampling.SamplingPercentage ISupportSampling.SamplingPercentage

Gets or sets data sampling percentage (between 0 and 100). Should be 100/n where n is an integer. Learn more

Applies to