getsentry / getsentry/sentry-javascript

Investigate auto-instrumentation limitation using IITM for meta-frameworks

Open
#19,078 1 comment 0 reactions 0 assignees View on GitHub
javascript Task
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

We have an issue where modules are not being patched correctly in meta-frameworks. This prevents users from getting AI integrations out of the box and forces them to use manual instrumentation.

Core problem: auto-instrumentation fails because meta-frameworks import modules **before** they are registered with the `import-in-the-middle` hook system. Meta-frameworks often parse files to discover routes, which triggers top-level imports. As a result, AI SDKs load before Sentry can register and patch them.

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.