You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Persisted Operations on the JavaScript GraphqlClientIntegration SDK #18499
The graphqlClientIntegration currently only extracts operation information from the query field in GraphQL requests. This means persisted operations aren't tracked - a common production optimization where clients send only operationName and a hash instead of the full query string.
Current behavior:
✅ Request with query: Creates span with operation name
❌ Request with persisted operation (no query field): No span created or missing operation details
Example persisted operation request:
We're using this in production at a large e-commerce platform with 100+ frontend developers. Persisted operations reduce payload size and improve security. This change gives us both benefits.
Solution Brainstorm
Solution
Detect persisted operations: Check for operationName when query is missing
Create descriptive span names: Use "persisted {operationName}" format
Add operation attribute: Store operation name without the full query body
Maintain backward compatibility: Normal query-based requests work exactly as before
Changes:
Extract operation name from request body when query field is absent
Add span attribute for operation name on persisted queries
Update span description to indicate persisted operations
Additional Context
No response
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Hi @andreiborza, awesome! I actually already created a patch for our internal systems. I can share it on here so you can use it aswel to base an MR/PR on. Or, go with this one 😄
@andreiborza That's amazing! I'm blown away by the speed and pro-activeness on this. I'll keep an eye and make sure to be the first one installing the update when it's there 😉 Big kudos to you and the team, really happy with this.
Activity
linear commentedon Dec 15, 2025
JS-1302
andreiborza commentedon Dec 15, 2025
Hi @TBeeren, thanks for filing this.
This sounds reasonable to me, I'll give it a go.
TBeeren commentedon Dec 15, 2025
Hi @andreiborza, awesome! I actually already created a patch for our internal systems. I can share it on here so you can use it aswel to base an MR/PR on. Or, go with this one 😄
andreiborza commentedon Dec 15, 2025
@TBeeren cool, if you want you could also contribute this as a PR and I can review it and take over testing for example. Let me know :)
TBeeren commentedon Dec 15, 2025
@andreiborza Awesome, here you go:
#18505
I'll also do some integration testing within our apps based on this version/ source.
andreiborza commentedon Dec 15, 2025
@TBeeren this'll probably go out tomorrow fyi.
feat(browser): Add support for GraphQL persisted operations (#18505)
feat(browser): Add support for GraphQL persisted operations (#18505)
TBeeren commentedon Dec 16, 2025
@andreiborza That's amazing! I'm blown away by the speed and pro-activeness on this. I'll keep an eye and make sure to be the first one installing the update when it's there 😉 Big kudos to you and the team, really happy with this.
github-actions commentedon Dec 16, 2025
A PR closing this issue has just been released 🚀
This issue was referenced by PR #18505, which was included in the 10.31.0 release.