Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a context for sending telemetry to the Application Insights service. Learn more
public sealed class TelemetryContext
type TelemetryContext = class
Public NotInheritable Class TelemetryContext
Initializes a new instance of the TelemetryContext class.
Value for the flag that indicates that server should not store IP address from incoming events.
Gets the object describing the cloud tracked by this TelemetryContext.
Gets the object describing the component tracked by this TelemetryContext.
Gets the object describing the device tracked by this TelemetryContext.
Gets or sets flags which controls events priority and endpoint behavior.
Gets a dictionary of application-defined property values which are global in scope. Future SDK versions could serialize this separately from the item level properties. Learn more
Gets the object describing a location tracked by this TelemetryContext.
Gets a dictionary of application-defined property values. Learn more
Gets the object describing a user session tracked by this TelemetryContext.
Gets the object describing a user tracked by this TelemetryContext.
|StoreRawObject(String, Object, Boolean)||
Stores the raw object against the key specified. Use this to store raw objects from data collectors so that TelemetryInitializers can access them to extract additional details to enrich telemetry. Objects stored through this method are not automatically serialized and sent to the backend. They are shared (i.e not cloned) if multiple sinks are configured, so sinks should treat them as read-only.
Returns the raw object with the given key.