This package contains tests for @sentry/opentelemetry when using OpenTelemetry v2. It is used to ensure compatibility with OpenTelemetry v2 APIs.
To run the tests:
yarn testThe tests are copied from packages/opentelemetry/test with adjusted imports to work with OpenTelemetry v2 dependencies. The main differences are:
- Uses OpenTelemetry v2 as devDependencies
- Imports from
@sentry/opentelemetryinstead of relative paths - Tests the same functionality but with v2 APIs