Skip to content

feat(graphene): Add span streaming support - #6476

Merged
ericapisani merged 1 commit into
masterfrom
py-2328-migrate-graphene
Jun 2, 2026
Merged

feat(graphene): Add span streaming support#6476
ericapisani merged 1 commit into
masterfrom
py-2328-migrate-graphene

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Add support for OpenTelemetry span streaming in the Graphene GraphQL integration. When span streaming is enabled via the trace_lifecycle experiment, use sentry_sdk.traces.start_span() with attributes instead of the traditional start_span() + set_data() approach.

Also improve operation_name handling to provide a sensible default when the operation name is not specified in the GraphQL request.

Fixes PY-2328
Fixes#6026

Add support for OpenTelemetry span streaming in the Graphene GraphQL integration. When span streaming is enabled via the trace_lifecycle experiment, use sentry_sdk.traces.start_span() with attributes instead of the traditional start_span() + set_data() approach.
Also improve operation_name handling to provide a sensible default when the operation name is not specified in the GraphQL request.
Fixes PY-2328
Fixes#6026
@ericapisani
ericapisani requested a review from a team as a code ownerJune 1, 2026 17:30
@linear-code

Copy link
Copy Markdown

PY-2328

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

88056 passed | ⏭️ 6009 skipped | Total: 94065 | Pass Rate: 93.61% | Execution Time: 290m 18s

📊 Comparison with Base Branch

MetricChange
Total Tests📈 +18
Passed Tests📈 +18
Failed Tests
Skipped Tests

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2306 uncovered lines.
✅ Project coverage is 89.99%. Comparing base (base) to head (head).

Coverage diff
@@ Coverage Diff @@## main #PR +/-##
==========================================
+ Coverage 89.99% 89.99% —%
==========================================
Files 191 191 —
Lines 23028 23037 +9
Branches 7904 7910 +6
==========================================
+ Hits 20722 20731 +9- Misses 2306 2306 —- Partials 1307 1307 —

Generated by Codecov Action

@ericapisani
ericapisani merged commit 0466867 into masterJun 2, 2026
144 checks passed
@ericapisani
ericapisani deleted the py-2328-migrate-graphene branch June 2, 2026 12:30
mgaligniana pushed a commit to mgaligniana/sentry-python that referenced this pull request Aug 9, 2026
Add support for OpenTelemetry span streaming in the Graphene GraphQL
integration. When span streaming is enabled via the trace_lifecycle
experiment, use sentry_sdk.traces.start_span() with attributes instead
of the traditional start_span() + set_data() approach.
Also improve operation_name handling to provide a sensible default when
the operation name is not specified in the GraphQL request.
Fixes PY-2328
Fixesgetsentry#6026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate graphene to span first

2 participants

@ericapisani@sentrivana