Skip to content

Add gen_ai.request.top_k to model settings mapping #5832

Closed as duplicate

Description

@ericapisani

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions