sentry-javascript
sentry-javascript copied to clipboard
Align `Span` interface with changes in Otel Span interface
There are three methods in the OTEL Span interface that we do not have in our own, leading to technical incompatibility - see https://github.com/open-telemetry/opentelemetry-js/blob/main/api/src/trace/span.ts
-
addLink- should noop in SentrySpan -
addLinks- should noop in SentrySpan -
recordException- should probably capture an exception??
Without this, you technically can't pass something typed as Span from @sentry/types into some API that expects an OTEL span.