GraphQL

GraphQL Attributes

This document defines attributes for GraphQL.

AttributeTypeDescriptionExamplesStability
graphql.documentstringThe GraphQL document being executed. [1]query findBookById { bookById(id: ?) { name } }Development
graphql.operation.namestringThe name of the operation being executed.findBookByIdDevelopment
graphql.operation.typestringThe type of the operation being executed.query; mutation; subscriptionDevelopment

[1] graphql.document: The value may be sanitized to exclude sensitive information.


graphql.operation.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
mutationGraphQL mutationDevelopment
queryGraphQL queryDevelopment
subscriptionGraphQL subscriptionDevelopment