-
Notifications
You must be signed in to change notification settings - Fork 602
feat(cohere): Instrument async client methods #5845
Copy link
Copy link
Open
Labels
Description
No AsyncClient methods are wrapped. Both the OpenAI and Anthropic integrations wrap async variants (AsyncCompletions.create, AsyncMessages.create, etc.). The Cohere async client's chat, chat_stream, and embed methods should be instrumented to match.
Acceptance criteria:
- Async
chat,chat_stream, andembedmethods emit spans - Behavior mirrors the sync wrappers (token usage, input/output data, error handling)
- Follows
gen_ai.*attribute conventions (not deprecatedai.*) - Sets
gen_ai.system = "cohere"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Fields
Give feedbackNo fields configured for issues without a type.