Skip to main content

Class: OpenTelemetryNexusOutboundInterceptor

Intercepts outbound calls from a Nexus Operation handler.

Attaches OpenTelemetry context tracing attributes to emitted log messages.

Implements​

Constructors​

Constructor​

new OpenTelemetryNexusOutboundInterceptor(ctx): OpenTelemetryNexusOutboundInterceptor

Parameters​

ctx​

OperationContext

Returns​

OpenTelemetryNexusOutboundInterceptor

Methods​

getLogAttributes()​

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

Parameters​

input​

GetLogAttributesInput

next​

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

Returns​

Record<string, unknown>

Implementation of​

NexusOutboundCallsInterceptor.getLogAttributes


getMetricTags()​

getMetricTags(input, next): GetMetricTagsInput

Parameters​

input​

GetMetricTagsInput

next​

OmitLastParam<(input, next) => MetricTags>

Returns​

GetMetricTagsInput

Implementation of​

NexusOutboundCallsInterceptor.getMetricTags