Skip to content

Commit

Permalink
this PR fixes the graphql span keys according to conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
kofoworola committed Mar 1, 2024
1 parent 97112d7 commit 8037e12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions semconv/v1.0.0/graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import (
)

const (
// GraphQLPrefix is the base prefix for all GraphQL attributes
GraphQLPrefix = "graphql."
// GraphQLOperationPrefix is the base prefix for all the GraphQL operation attributes
GraphQLOperationPrefix = "operation."
GraphQLOperationPrefix = GraphQLPrefix + "operation."
)

const (
Expand All @@ -20,7 +22,7 @@ const (

const (
// GraphQLDocumentKey represents The GraphQL document being executed.
GraphQLDocumentKey = attribute.Key("document")
GraphQLDocumentKey = attribute.Key(GraphQLPrefix + "document")
)

// GraphQLOperationName returns an attribute KeyValue conforming to the
Expand Down

0 comments on commit 8037e12

Please sign in to comment.