getsentry / getsentry/sentry-python

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

Abierto
#5,832 1 comentario 0 reacciones 0 asignados Ver en GitHub
Improvement Python Spans
Lenguaje dominante
Python
Estrellas
2.2k
Forks
669
Merge medio
1 d 1 h
PR fusionados (30 d)
213

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.