Skip to main content

Class: OpenTelemetryNexusOutboundInterceptor

Experimental

Intercepts outbound calls from a Nexus Operation handler.

Attaches OpenTelemetry context tracing attributes to emitted log messages.

This interceptor is experimental and APIs may change without notice.

Implements​

Constructors​

Constructor​

new OpenTelemetryNexusOutboundInterceptor(ctx): OpenTelemetryNexusOutboundInterceptor

Experimental

Parameters​

ctx​

OperationContext

Returns​

OpenTelemetryNexusOutboundInterceptor

Methods​

getLogAttributes()​

getLogAttributes(input, next): Record<string, unknown>

Experimental

Parameters​

input​

GetLogAttributesInput

next​

OmitLastParam<(input, next) => Record<string, unknown>>

Returns​

Record<string, unknown>

Implementation of​

NexusOutboundCallsInterceptor.getLogAttributes


getMetricTags()​

getMetricTags(input, next): GetMetricTagsInput

Experimental

Parameters​

input​

GetMetricTagsInput

next​

OmitLastParam<(input, next) => MetricTags>

Returns​

GetMetricTagsInput

Implementation of​

NexusOutboundCallsInterceptor.getMetricTags