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

Open Beginner friendly
#5,831 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
72/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
observability

Research direction

Open sentry_sdk/integrations/pydantic_ai/utils.py at settings_map around line 148 and compare it with the existing definition in consts.py. Confirm how ModelSettings keys are mapped, then add the requested seed mapping and verify that the gen_ai.request.seed attribute is produced correctly.

Written by the indexing model from the issue text.

Description

Improvement Python Spans

Add seedSPANDATA.GEN_AI_REQUEST_SEED 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.

Dominant language
Python
Stars
2.2k
Forks
672
Avg merge
1d 13m
Merged PRs (30d)
212

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-python

All issues in getsentry/sentry-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.