From 8037e12825b340c7a03e4980f482442742484b43 Mon Sep 17 00:00:00 2001 From: Kofo Okesola Date: Fri, 1 Mar 2024 09:36:21 +0100 Subject: [PATCH] this PR fixes the graphql span keys according to conventions --- semconv/v1.0.0/graphql.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/semconv/v1.0.0/graphql.go b/semconv/v1.0.0/graphql.go index 93629b5..4753c0b 100644 --- a/semconv/v1.0.0/graphql.go +++ b/semconv/v1.0.0/graphql.go @@ -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 ( @@ -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