-
-
Notifications
You must be signed in to change notification settings - Fork 705
Suppress external instrumentations for fetch calls from ApiClient #1788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppress external instrumentations for fetch calls from ApiClient #1788
Conversation
🦋 Changeset detectedLatest commit: 8e8f670 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis pull request documents a patch update for the Changes
Sequence Diagram(s)sequenceDiagram
participant C as Caller
participant A as ApiClient
participant S as SuppressTracing Context
participant R as Remote Server
C->>A: Initiate fetch request
A->>S: Enter suppressed tracing context
S->>R: Execute fetch call
R-->>S: Return response
S-->>A: Pass fetch result
A-->>C: Return data
Possibly related PRs
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
Scope: all 2 workspace projects Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
🔇 Additional comments (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Signed-off-by: Erin Allison <[email protected]>
b90251d
to
8e8f670
Compare
@erin-allison this is amazing, I had no idea this was possible with OTEL. The packages won't be published until Run Engine 2 is out but this will go live with that. |
This should address an issue that has come up a few times in Discord where
@opentelemetry/instrumentation-undici
causes nested traces to not render properly in the dashboard.✅ Checklist
Testing
Implemented the change as a
pnpm patch
and tested a handful of ApiClient calls with it.Changelog
@opentelemetry/core
as a dependency to@trigger.dev/core
zodFetch
implementation to suppress further tracing once inside oftraceZodFetch
Screenshots
Before:

After:

💯
Summary by CodeRabbit
New Features
Chores