View Source OpenTelemetry.SemConv.Incubating.GraphqlAttributes (OpenTelemetry.SemConv v1.27.0)
OpenTelemetry Semantic Conventions for Graphql attributes.
Summary
Types
The type of the operation being executed.
Functions
The GraphQL document being executed.
The name of the operation being executed.
The type of the operation being executed.
Types
Functions
@spec graphql_document() :: :"graphql.document"
The GraphQL document being executed.
Value type
Value must be of type atom() | String.t()
.
Notes
The value may be sanitized to exclude sensitive information.
Examples
query findBookById { bookById(id: ?) { name } }
iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_document()
:"graphql.document"
?GRAPHQL_DOCUMENT.
'graphql.document'
@spec graphql_operation_name() :: :"graphql.operation.name"
The name of the operation being executed.
Value type
Value must be of type atom() | String.t()
.
Examples
findBookById
iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_name()
:"graphql.operation.name"
?GRAPHQL_OPERATION_NAME.
'graphql.operation.name'
@spec graphql_operation_type() :: :"graphql.operation.type"
The type of the operation being executed.
Examples
["query", "mutation", "subscription"]
iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type()
:"graphql.operation.type"
iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type_values().query
:query
iex> %{OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type() => OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type_values().query}
%{:"graphql.operation.type" => :query}
?GRAPHQL_OPERATION_TYPE.
'graphql.operation.type'
?GRAPHQL_OPERATION_TYPE_VALUES_QUERY.
'query'
#{?GRAPHQL_OPERATION_TYPE => ?GRAPHQL_OPERATION_TYPE_VALUES_QUERY}.
#{'graphql.operation.type' => 'query'}
@spec graphql_operation_type_values() :: graphql_operation_type_values()