Skip to content

ref(pydantic-ai): Adopt shared span-data helper for dual span APIs - #7193

Draft
ericapisani wants to merge 1 commit into
masterfrom
ep/pydantic-ai-refactor-1-span-helper
Draft

ref(pydantic-ai): Adopt shared span-data helper for dual span APIs#7193
ericapisani wants to merge 1 commit into
masterfrom
ep/pydantic-ai-refactor-1-span-helper

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Description

Issues

Reminders


Stack created with GitHub Stacks CLIGive Feedback 💬

Replace the ten hand-rolled set_attribute/set_data dispatch branches with the existing sentry_sdk.ai.utils._set_span_data_attribute helper already used by the MCP and Hugging Face Hub integrations. Also guard gen_ai.response.model against a None model_name (previously masked by a type-ignore) and move now annotation-only StreamedSpan imports under TYPE_CHECKING.
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

112463 passed | ⏭️ 6759 skipped | Total: 119222 | Pass Rate: 94.33% | Execution Time: 401m 4s

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2478 uncovered lines.
❌ Project coverage is 90.22%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/pydantic_ai/spans/ai_client.py 100.00% ⚠️ 1 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    90.23%    90.22%    -0.01%
==========================================
  Files          193       193         —
  Lines        25361     25344       -17
  Branches      9302      9294        -8
==========================================
+ Hits         22883     22866       -17
- Misses        2478      2478         —
- Partials      1432      1433        +1

Generated by Codecov Action

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant