getsentry / getsentry/sentry-javascript

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

Offen
#10,940 18 Kommentare 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Improvement OpenTelemetry
Vorherrschende Sprache
TypeScript
Sterne
8.7k
Forks
1.8k
Ø Merge
1 T. 17 Std.
Gemergte PRs (30 T.)
515

Beschreibung

### 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.