Skip to content

feat(gql): Gate GraphQL data collection behind data_collection option#6889

Draft
ericapisani wants to merge 1 commit into
py-2585-strawberryfrom
py-2585-gql
Draft

feat(gql): Gate GraphQL data collection behind data_collection option#6889
ericapisani wants to merge 1 commit into
py-2585-strawberryfrom
py-2585-gql

Conversation

@ericapisani

@ericapisani ericapisani commented Jul 24, 2026

Copy link
Copy Markdown
Member

Attach the GraphQL document and variable definitions to error events based on the structured data_collection configuration (graphql.document / graphql.variables), falling back to send_default_pii when data_collection is not set.

Refs PY-2585
Refs #6745

Attach the GraphQL document and variable definitions to error events based on the structured data_collection configuration (graphql.document / graphql.variables), falling back to send_default_pii when data_collection is not set.
@linear-code

linear-code Bot commented Jul 24, 2026

Copy link
Copy Markdown

PY-2585

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

97865 passed | ⏭️ 6410 skipped | Total: 104275 | Pass Rate: 93.85% | Execution Time: 352m 45s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +433
Passed Tests 📈 +434
Failed Tests 📉 -1
Skipped Tests

➖ Removed Tests (1)

View removed tests
  • test_circular_references_span_streaming
    • File: tests.tracing.test_misc

All tests are passing successfully.

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

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/gql.py 100.00% ⚠️ 1 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    89.71%    89.69%    -0.02%
==========================================
  Files          193       193         —
  Lines        24392     24437       +45
  Branches      8642      8684       +42
==========================================
+ Hits         21882     21918       +36
- Misses        2510      2519        +9
- Partials      1399      1402        +3

Generated by Codecov Action

Sign up for free to 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.

1 participant