getsentry / getsentry/sentry-javascript

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

Ouverte
#10,940 18 commentaires 4 réactions 0 personnes assignées Voir sur GitHub
Improvement OpenTelemetry
Langage dominant
TypeScript
Étoiles
8.7k
Forks
1.8k
Merge moyen
1 j 17 h
PR mergées (30 j)
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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.