Any span object that exposes setAttribute(key, value).
setAttribute(key, value)
Accepts both the lightweight SpanContext (from tracing.ts) and real OpenTelemetry Span objects from @opentelemetry/api — the shapes are structurally compatible.
tracing.ts
Span
@opentelemetry/api
Any span object that exposes
setAttribute(key, value).Accepts both the lightweight SpanContext (from
tracing.ts) and real OpenTelemetrySpanobjects from@opentelemetry/api— the shapes are structurally compatible.