OpenTelemetryHandlerContext Struct
public readonly struct OpenTelemetryHandlerContextNo documentation is available.
Constructors
| Name | Description |
|---|---|
| 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.csInitializes 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
transportOpenTelemetryTransportmethodstringpartialSuccessOpenTelemetryPartialSuccess
Properties
| Name | Description |
|---|---|
| Method | Gets the transport method that carried the request, or an empty string for a default instance. |
| PartialSuccess | 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. |
| Transport |
PartialSuccess
OpenTelemetryHandlerContext.csGets 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; }