Skip to main content

opentelemetryV2

npm i @temporalio/interceptors-opentelemetry-v2

Interceptors that add OpenTelemetry tracing.

Documentation

Enumerations​

Classes​

Interfaces​

Type Aliases​

SerializableSpanContext​

SerializableSpanContext = Omit<otel.SpanContext, "traceState"> & object

Serializable version of SpanContext where traceState is converted to a string.

Type Declaration​

traceState?​

optional traceState?: string

Variables​

SPAN_DELIMITER​

const SPAN_DELIMITER: ":" = ":"

Functions​

makeWorkflowExporter()​

makeWorkflowExporter(processor, resource): InjectedSink<OpenTelemetryWorkflowExporter>

Takes an opentelemetry SpanProcessor and turns it into an injected Workflow span exporter sink.

Parameters​

processor​

SpanProcessor

resource​

Resource

Returns​

InjectedSink<OpenTelemetryWorkflowExporter>