getsentry / getsentry/sentry-python

Add `gen_ai.request.top_k` to model settings mapping

Aperta
#5,832 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Improvement Python Spans
Lingua principale
Python
Stelle
2.2k
Fork
669
Merge medio
1g 1h
PR unite (30g)
213

Descrizione

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`.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.