getsentry / getsentry/sentry-javascript

[Node]: Support otel auto instrumentation when code is bundled

Open
#10,940 18 comments 4 reactions 0 assignees View on GitHub
Improvement OpenTelemetry
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

### Problem Statement

OpenTelemetry auto instrumentation relies on `import-in-the-middle` and `require-in-the-middle` to hook loading of modules so they can be proxied and automatically instrumented. If the code is bundled, modules are not loaded so there is no auto instrumentation.

### Solution Brainstorm

Using the Sentry bundler plugins, we can wrap the "loading" of modules and call the existing callbacks that hook up the instrumentation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.