-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] move graphql to registry (#882)
- Loading branch information
Showing
8 changed files
with
74 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!--- 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 } }` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| `graphql.operation.name` | string | The name of the operation being executed. | `findBookById` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| `graphql.operation.type` | string | The type of the operation being executed. | `query`; `mutation`; `subscription` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
|
||
**[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 | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| `mutation` | GraphQL mutation | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| `subscription` | GraphQL subscription | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
<!-- endsemconv --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
groups: | ||
- id: registry.graphql | ||
prefix: graphql | ||
type: attribute_group | ||
brief: 'This document defines attributes for GraphQL.' | ||
attributes: | ||
- id: operation.name | ||
brief: "The name of the operation being executed." | ||
type: string | ||
stability: experimental | ||
examples: 'findBookById' | ||
- id: operation.type | ||
brief: "The type of the operation being executed." | ||
stability: experimental | ||
type: | ||
allow_custom_values: false | ||
members: | ||
- id: query | ||
value: "query" | ||
brief: "GraphQL query" | ||
stability: experimental | ||
- id: mutation | ||
value: "mutation" | ||
brief: "GraphQL mutation" | ||
stability: experimental | ||
- id: subscription | ||
value: "subscription" | ||
brief: "GraphQL subscription" | ||
stability: experimental | ||
examples: ['query', 'mutation', 'subscription'] | ||
- id: document | ||
brief: "The GraphQL document being executed." | ||
type: string | ||
stability: experimental | ||
note: The value may be sanitized to exclude sensitive information. | ||
examples: 'query findBookById { bookById(id: ?) { name } }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,13 @@ | ||
groups: | ||
- id: graphql | ||
prefix: graphql | ||
type: span | ||
brief: > | ||
This document defines semantic conventions to apply when instrumenting the GraphQL implementation. They map | ||
GraphQL operations to attributes on a Span. | ||
attributes: | ||
- id: operation.name | ||
brief: "The name of the operation being executed." | ||
type: string | ||
stability: experimental | ||
examples: 'findBookById' | ||
- id: operation.type | ||
brief: "The type of the operation being executed." | ||
stability: experimental | ||
type: | ||
allow_custom_values: false | ||
members: | ||
- id: query | ||
value: "query" | ||
brief: "GraphQL query" | ||
stability: experimental | ||
- id: mutation | ||
value: "mutation" | ||
brief: "GraphQL mutation" | ||
stability: experimental | ||
- id: subscription | ||
value: "subscription" | ||
brief: "GraphQL subscription" | ||
stability: experimental | ||
examples: ['query', 'mutation', 'subscription'] | ||
- id: document | ||
brief: "The GraphQL document being executed." | ||
type: string | ||
stability: experimental | ||
note: The value may be sanitized to exclude sensitive information. | ||
examples: 'query findBookById { bookById(id: ?) { name } }' | ||
- ref: graphql.operation.name | ||
requirement_level: recommended | ||
- ref: graphql.operation.type | ||
requirement_level: recommended | ||
- ref: graphql.document | ||
requirement_level: recommended |