fix(server-utils): Ensure all orchestrion instrumentation lazy registers#22518
fix(server-utils): Ensure all orchestrion instrumentation lazy registers#22518isaacs wants to merge 1 commit into
Conversation
size-limit report 📦
|
73c683a to
d752238
Compare
|
Going to port this atop #22443 once that lands, since there are some conflicts. UPDATE: this is now done. Single commit can base cleanly on |
6d6a126 to
464dc8f
Compare
…on Node (#22518) Co-Authored-By: isaacs <i@izs.me> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
464dc8f to
ae93c4e
Compare
…azy registers on Node (#22518)
…on Node (#22518) Co-Authored-By: isaacs <i@izs.me> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
38d60ec to
7edaad4
Compare
…azy registers on Node (#22518)
…on Node (#22518) Co-Authored-By: isaacs <i@izs.me> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…azy registers on Node (#22518)
549f754 to
3f5b4ba
Compare
…n Node (#22518) Co-Authored-By: isaacs <i@izs.me> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
62e4483 to
96d3ac4
Compare
…on Node (#22518) Co-Authored-By: isaacs <i@izs.me> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
96d3ac4 to
bf10337
Compare
…on Node (#22518) Co-Authored-By: isaacs <i@izs.me> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
bf10337 to
0f52d62
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0f52d62. Configure here.
| bindNodeRedisBatchChannel(CHANNELS.NODE_REDIS_BATCH, data => | ||
| data.arguments?.[2] !== undefined ? 'MULTI' : 'PIPELINE', | ||
| ); | ||
| } |
There was a problem hiding this comment.
Redis legacy subscribe deferred incorrectly
Medium Severity
subscribeLegacyRedisCommand used to run immediately because redis v2–v3 does not need bindStore. It now sits inside invokeOrchestrionInstrumentation, which always waits on the tracing-channel binding. On the bundler path that list is already populated at setup, so subscription is deferred past Sentry.init() while OpenTelemetry is still coming up, and early redis v2–v3 commands can emit with no subscriber.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 0f52d62. Configure here.


This ports and refactors the intent of #22387, using the mechanisms landed on
developin #22094, rather than the mechanisms in #22386 which are similar in intent, but substantially different in implementation.The difference from #22387 is entirely in the plumbing underneath the helper. The way that "is my module injected?" and "tell me when it gets injected" are answered, both now use the machinery that already landed.
Beyond that, the actual registration, event emitting, double-wrap guard, and integration refactoring, should all look very familiar.