Class: OpenTelemetryNexusOutboundInterceptor
opentelemetry.OpenTelemetryNexusOutboundInterceptor
Intercepts outbound calls from a Nexus Operation handler.
Attaches OpenTelemetry context tracing attributes to emitted log messages and metrics.
Implements
Constructors
constructor
• new OpenTelemetryNexusOutboundInterceptor(ctx): OpenTelemetryNexusOutboundInterceptor
Parameters
| Name | Type |
|---|---|
ctx | OperationContext |
Returns
OpenTelemetryNexusOutboundInterceptor
Methods
getLogAttributes
▸ getLogAttributes(input, next): Record<string, unknown>
Parameters
| Name | Type |
|---|---|
input | GetLogAttributesInput |
next | OmitLastParam<(input: GetLogAttributesInput, next: OmitLastParam<(input: GetLogAttributesInput, next: OmitLastParam<...>) => Record<string, unknown>>) => Record<string, unknown>> |
Returns
Record<string, unknown>
Implementation of
NexusOutboundCallsInterceptor.getLogAttributes
getMetricTags
▸ getMetricTags(input, next): MetricTags
Parameters
| Name | Type |
|---|---|
input | MetricTags |
next | OmitLastParam<(input: MetricTags, next: OmitLastParam<(input: MetricTags, next: OmitLastParam<...>) => MetricTags>) => MetricTags> |
Returns
Implementation of
NexusOutboundCallsInterceptor.getMetricTags