getsentry / getsentry/sentry-python

feat(cohere): Instrument async client methods

Aberta
#5,845 1 comentário 0 reações 0 responsáveis Ver no GitHub
Improvement Python Spans
Linguagem predominante
Python
Estrelas
2.2k
Forks
669
Merge médio
1d 40min
PRs com merge (30d)
212

Descrição

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`, and `embed` methods emit spans
* Behavior mirrors the sync wrappers (token usage, input/output data, error handling)
* Follows `gen_ai.*` attribute conventions (not deprecated `ai.*`)
* Sets `gen_ai.system = "cohere"`

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.