OpenTelemetryHandlerContext Struct

public readonly struct OpenTelemetryHandlerContext

No documentation is available.

Constructors

NameDescription
OpenTelemetryHandlerContext(OpenTelemetryTransport, string, OpenTelemetryPartialSuccess)Initializes a context. Handlers receive one from the receiver; this constructor exists so they can be unit tested.

OpenTelemetryHandlerContext(OpenTelemetryTransport, string, OpenTelemetryPartialSuccess)

OpenTelemetryHandlerContext.cs

Initializes a context. Handlers receive one from the receiver; this constructor exists so they can be unit tested.

public OpenTelemetryHandlerContext(OpenTelemetryTransport transport, string method, OpenTelemetryPartialSuccess partialSuccess)

Parameters

transport OpenTelemetryTransport
method string
partialSuccess OpenTelemetryPartialSuccess

Properties

NameDescription
MethodGets the transport method that carried the request, or an empty string for a default instance.
PartialSuccessGets the object used to report the records that could not be accepted, so they are sent back to the client in the OTLP partial_success response field.
Transport

Gets the transport method that carried the request, or an empty string for a default instance.

public string Method { get; }

Property value

string

Gets the object used to report the records that could not be accepted, so they are sent back to the client in the OTLP partial_success response field.

public OpenTelemetryPartialSuccess PartialSuccess { get; }
public OpenTelemetryTransport Transport { get; }

No documentation is available.