sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Align `Span` interface with changes in Otel Span interface

Open mydea opened this issue 1 year ago • 0 comments

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.

mydea avatar Jun 19 '24 14:06 mydea