Class: OpenTelemetryActivityOutboundInterceptor
opentelemetry.OpenTelemetryActivityOutboundInterceptor
Intercepts calls to emit logs and metrics from an Activity.
Attach OpenTelemetry context tracing attributes to emitted log messages and metrics, if appropriate.
Implements
Constructors
constructor
• new OpenTelemetryActivityOutboundInterceptor(ctx): OpenTelemetryActivityOutboundInterceptor
Parameters
| Name | Type |
|---|---|
ctx | Context |
Returns
OpenTelemetryActivityOutboundInterceptor
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
ActivityOutboundCallsInterceptor.getLogAttributes
getMetricTags
▸ getMetricTags(input, next): MetricTags
Parameters
| Name | Type |
|---|---|
input | MetricTags |
next | OmitLastParam<(input: MetricTags, next: OmitLastParam<(input: MetricTags, next: OmitLastParam<...>) => MetricTags>) => MetricTags> |