24 lines
1.3 KiB
Markdown
24 lines
1.3 KiB
Markdown
<!--- Hugo front matter used to generate the website version of this page:
|
|
--->
|
|
|
|
# GraphQL
|
|
|
|
## GraphQL Attributes
|
|
|
|
<!-- semconv registry.graphql(omit_requirement_level) -->
|
|
| Attribute | Type | Description | Examples | Stability |
|
|
|---|---|---|---|---|
|
|
| `graphql.document` | string | The GraphQL document being executed. [1] | `query findBookById { bookById(id: ?) { name } }` |  |
|
|
| `graphql.operation.name` | string | The name of the operation being executed. | `findBookById` |  |
|
|
| `graphql.operation.type` | string | The type of the operation being executed. | `query`; `mutation`; `subscription` |  |
|
|
|
|
**[1]:** The value may be sanitized to exclude sensitive information.
|
|
|
|
`graphql.operation.type` MUST be one of the following:
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `query` | GraphQL query |  |
|
|
| `mutation` | GraphQL mutation |  |
|
|
| `subscription` | GraphQL subscription |  |
|
|
<!-- endsemconv --> |