graphql.document
string PII: Maybe Visibility: Public OTel: True The GraphQL document being executed.
PII Reason The document may contain sensitive information in arguments or variables. Instrumentation should redact sensitive information when possible.
Example
query findBookById { bookById(id: ?) { name } } Changelog
v0.7.0 Adds the `graphql.document` attribute to track the GraphQL document being executed.
Raw JSON
{
"key": "graphql.document",
"brief": "The GraphQL document being executed.",
"type": "string",
"pii": {
"key": "maybe",
"reason": "The document may contain sensitive information in arguments or variables. Instrumentation should redact sensitive information when possible."
},
"is_in_otel": true,
"visibility": "public",
"example": "query findBookById { bookById(id: ?) { name } }",
"changelog": [
{
"version": "0.7.0",
"description": "Adds the `graphql.document` attribute to track the GraphQL document being executed."
}
]
}