<PackageReference Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.10.0" />

Azure.Monitor.OpenTelemetry.Exporter.Models.TelemetryItem

public MonitorBase Data { get; set; }

Telemetry data item.

public string InstrumentationKey { get; set; }

The instrumentation key of the Application Insights resource.

public string Name { get; }

Type name of telemetry data item.

public float? SampleRate { get; set; }

Sampling rate used in application. This telemetry item represents 100 / sampleRate actual telemetry items.

public string Sequence { get; set; }

Sequence field used to track absolute order of uploaded events.

public IDictionary<string, string> Tags { get; }

Key/value collection of context properties. See ContextTagKeys for information on available properties.

public DateTimeOffset Time { get; }

Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z.

public int? Version { get; set; }

Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.

public TelemetryItem(Activity activity, ref ActivityTagsProcessor activityTagsProcessor, AzureMonitorResource resource, string instrumentationKey, float sampleRate)

public TelemetryItem(string name, TelemetryItem telemetryItem, ActivitySpanId activitySpanId, ActivityKind kind, DateTimeOffset activityEventTimeStamp)

public TelemetryItem(string name, LogRecord logRecord, AzureMonitorResource resource, string instrumentationKey, LogContextInfo logContext)

public TelemetryItem(string name, DateTimeOffset envelopeTime, LogRecord logRecord, AzureMonitorResource resource, string instrumentationKey, LogContextInfo logContext)

public TelemetryItem(DateTime time, AzureMonitorResource resource, string instrumentationKey)

public TelemetryItem(DateTime time, AzureMonitorResource resource, string instrumentationKey, MonitorBase monitorBaseData)

public TelemetryItem(string name, DateTimeOffset time)

Initializes a new instance of TelemetryItem.

protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)