Skip to content

AI provider spans are suppressed globally when LangChain integration is active #19687

@nicohrubec

Description

@nicohrubec

When both LangChain and an AI provider integration (e.g. OpenAI) are active, we globally disable provider instrumentation to avoid duplicate spans. This means direct provider SDK calls that aren't related to LangChain also lose their spans. We should suppress provider spans only within the context of a LangChain call, not globally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    javascriptPull requests that update javascript code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions