Skip to content

Logfire Tracing: fix default arguments for Tracer.start_as_current_span#188

Merged
gvdongen merged 2 commits intomainfrom
fix-logfire-tracing-default
Apr 8, 2026
Merged

Logfire Tracing: fix default arguments for Tracer.start_as_current_span#188
gvdongen merged 2 commits intomainfrom
fix-logfire-tracing-default

Conversation

@gvdongen
Copy link
Copy Markdown
Contributor

@gvdongen gvdongen commented Apr 7, 2026

Both start_span and start_as_current_span had as default kind=None, and pass that None explicitly to the underlying tracer, overriding its default of SpanKind.INTERNAL. This caused a KeyError further down in the OTEL library for Pydantic AI + Logfire. This PR fixes that.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

Test Results

  7 files  ±0    7 suites  ±0   3m 19s ⏱️ -20s
 49 tests ±0   49 ✅ ±0  0 💤 ±0  0 ❌ ±0 
210 runs  ±0  210 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 695f069. ± Comparison against base commit b7a52eb.

♻️ This comment has been updated with latest results.

@gvdongen gvdongen merged commit 530c692 into main Apr 8, 2026
8 checks passed
@gvdongen gvdongen deleted the fix-logfire-tracing-default branch April 8, 2026 07:03
@github-actions github-actions bot locked and limited conversation to collaborators Apr 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant