getsentry / getsentry/sentry-python
Add `gen_ai.request.top_k` to model settings mapping
Aberta
Improvement
Python
Spans
- Linguagem predominante
- Python
- Estrelas
- 2.2k
- Forks
- 669
- Merge médio
- 1d 1h
- PRs com merge (30d)
- 213
Descrição
Add `top_k` → `SPANDATA.GEN_AI_REQUEST_TOP_K` to `settings_map` in `sentry_sdk/integrations/pydantic_ai/utils.py:148`.
This is a recommended OTel attribute that we already have defined in `consts.py` but is not mapped from pydantic-ai's `ModelSettings`.
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.