- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.7k
wip feat(node-core): Add integration disabling mechanism to prevent instrumentation conflicts #17972
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
base: develop
Are you sure you want to change the base?
Conversation
| size-limit report 📦
 | 
| node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application. 
 | 
fd71786    to
    79b5d89      
    Compare
  
    470034b    to
    31cce57      
    Compare
  
    | Bug: Race Condition in AI Provider SetupA race condition exists where the LangChain integration's  | 
When using higher-level integrations that wrap underlying libraries, both the wrapper integration and the underlying library integration can instrument the same API calls, resulting in duplicate spans. This is particularly problematic for:
The disabled integrations mechanism can be used as follows:
and is used in LangChain to auto disable OpenAI, Anthropic AI, and Google GenAI integrations in
setupOnce().