Skip to main content

Class: OpenTelemetryNexusInboundInterceptor

Experimental

Intercepts inbound Nexus Operation calls on the worker.

Wraps startOperation and cancelOperation in opentelemetry Spans, linking to a parent Span context if one is provided in the Nexus request headers.

This interceptor is experimental and APIs may change without notice.

Implements​

Constructors​

Constructor​

new OpenTelemetryNexusInboundInterceptor(ctx, options?): OpenTelemetryNexusInboundInterceptor

Experimental

Parameters​

ctx​

OperationContext

options?​

InterceptorOptions

Returns​

OpenTelemetryNexusInboundInterceptor

Methods​

cancelOperation()​

cancelOperation(input, next): Promise<void>

Experimental

Parameters​

input​

NexusCancelOperationInput

next​

OmitLastParam<(input, next) => Promise<void>>

Returns​

Promise<void>

Implementation of​

NexusInboundCallsInterceptor.cancelOperation


startOperation()​

startOperation(input, next): Promise<NexusStartOperationOutput>

Experimental

Parameters​

input​

NexusStartOperationInput

next​

OmitLastParam<(input, next) => Promise<NexusStartOperationOutput>>

Returns​

Promise<NexusStartOperationOutput>

Implementation of​

NexusInboundCallsInterceptor.startOperation