Skip to content

No support for Async messages when using Anthropic instrumentation #4497

@salaboy

Description

@salaboy

Describe your environment

OS: Mac OS
Python version: Python 3.14.0
Package version: @main

What happened?

There is no support for async messages when instrumenting Anthropic ChatAnthropic, so no spans are created.

Steps to Reproduce

Create a simple example like this one using FastAPI async : https://github.com/salaboy/observing-ai/tree/main/python/langchain/python-merch-store-otel-langchain-official

Expected Result

Async message should be instrumented as Sync messages

Actual Result

No instrumentation happens if Async is used.

Additional context

No response

Would you like to implement a fix?

Yes

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions