<PackageReference Include="OpenTelemetry.Api" Version="1.12.0" />

OpenTelemetry.Logs.LogRecordData

struct LogRecordData
Stores details about a log message.
public string Body { get; set; }

Gets or sets the log body.

public LogRecordSeverity? Severity { get; set; }

Gets or sets the log severity.

public string SeverityText { get; set; }

Gets or sets the original string representation of the severity as it is known at the source.

public ActivitySpanId SpanId { get; set; }

Gets or sets the log ActivitySpanId.

public DateTime Timestamp { get; set; }

Gets or sets the log timestamp.

public ActivityTraceFlags TraceFlags { get; set; }

Gets or sets the log ActivityTraceFlags.

public ActivityTraceId TraceId { get; set; }

Gets or sets the log ActivityTraceId.

public LogRecordData()

Initializes a new instance of the LogRecordData struct.

public LogRecordData(Activity activity)

Initializes a new instance of the LogRecordData struct.

public LogRecordData(ref ActivityContext activityContext)

Initializes a new instance of the LogRecordData struct.