@@ -82,8 +82,8 @@ def error_middleware(next, root, info, **args): # pylint: disable=W0622
8282 ("OtherTransaction/all" , 1 ),
8383 ("GraphQL/all" , 1 ),
8484 ("GraphQL/allOther" , 1 ),
85- ("GraphQL/GraphQL /all" , 1 ),
86- ("GraphQL/GraphQL /allOther" , 1 ),
85+ ("GraphQL/Ariadne /all" , 1 ),
86+ ("GraphQL/Ariadne /allOther" , 1 ),
8787]
8888
8989
@@ -118,17 +118,17 @@ def test_query_and_mutation(app, graphql_run):
118118 ("Python/Framework/GraphQL/%s" % version , 1 ),
119119 ]
120120 _test_mutation_scoped_metrics = [
121- ("GraphQL/resolve/GraphQL /storage" , 1 ),
122- ("GraphQL/resolve/GraphQL /storage_add" , 1 ),
123- ("GraphQL/operation/GraphQL /query/<anonymous>/storage" , 1 ),
124- ("GraphQL/operation/GraphQL /mutation/<anonymous>/storage_add.string" , 1 ),
121+ ("GraphQL/resolve/Ariadne /storage" , 1 ),
122+ ("GraphQL/resolve/Ariadne /storage_add" , 1 ),
123+ ("GraphQL/operation/Ariadne /query/<anonymous>/storage" , 1 ),
124+ ("GraphQL/operation/Ariadne /mutation/<anonymous>/storage_add.string" , 1 ),
125125 ]
126126 _test_mutation_unscoped_metrics = [
127127 ("OtherTransaction/all" , 1 ),
128128 ("GraphQL/all" , 2 ),
129- ("GraphQL/GraphQL /all" , 2 ),
129+ ("GraphQL/Ariadne /all" , 2 ),
130130 ("GraphQL/allOther" , 2 ),
131- ("GraphQL/GraphQL /allOther" , 2 ),
131+ ("GraphQL/Ariadne /allOther" , 2 ),
132132 ] + _test_mutation_scoped_metrics
133133
134134 _expected_mutation_operation_attributes = {
@@ -180,8 +180,8 @@ def _test():
180180@dt_enabled
181181def test_middleware (app , graphql_run , is_graphql_2 ):
182182 _test_middleware_metrics = [
183- ("GraphQL/operation/GraphQL /query/<anonymous>/hello" , 1 ),
184- ("GraphQL/resolve/GraphQL /hello" , 1 ),
183+ ("GraphQL/operation/Ariadne /query/<anonymous>/hello" , 1 ),
184+ ("GraphQL/resolve/Ariadne /hello" , 1 ),
185185 ("Function/test_application:example_middleware" , 1 ),
186186 ]
187187
@@ -212,8 +212,8 @@ def test_exception_in_middleware(app, graphql_run):
212212
213213 # Metrics
214214 _test_exception_scoped_metrics = [
215- ("GraphQL/operation/GraphQL /query/MyQuery/%s" % field , 1 ),
216- ("GraphQL/resolve/GraphQL /%s" % field , 1 ),
215+ ("GraphQL/operation/Ariadne /query/MyQuery/%s" % field , 1 ),
216+ ("GraphQL/resolve/Ariadne /%s" % field , 1 ),
217217 ]
218218 _test_exception_rollup_metrics = [
219219 ("Errors/all" , 1 ),
@@ -262,8 +262,8 @@ def test_exception_in_resolver(app, graphql_run, field):
262262
263263 # Metrics
264264 _test_exception_scoped_metrics = [
265- ("GraphQL/operation/GraphQL /query/MyQuery/%s" % field , 1 ),
266- ("GraphQL/resolve/GraphQL /%s" % field , 1 ),
265+ ("GraphQL/operation/Ariadne /query/MyQuery/%s" % field , 1 ),
266+ ("GraphQL/resolve/Ariadne /%s" % field , 1 ),
267267 ]
268268 _test_exception_rollup_metrics = [
269269 ("Errors/all" , 1 ),
@@ -326,7 +326,7 @@ def test_exception_in_validation(app, graphql_run, is_graphql_2, query, exc_clas
326326 exc_class = callable_name (GraphQLError )
327327
328328 _test_exception_scoped_metrics = [
329- # ('GraphQL/operation/GraphQL /<unknown>/<anonymous>/<unknown>', 1),
329+ ('GraphQL/operation/Ariadne /<unknown>/<anonymous>/<unknown>' , 1 ),
330330 ]
331331 _test_exception_rollup_metrics = [
332332 ("Errors/all" , 1 ),
@@ -360,7 +360,7 @@ def _test():
360360
361361@dt_enabled
362362def test_operation_metrics_and_attrs (app , graphql_run ):
363- operation_metrics = [("GraphQL/operation/GraphQL /query/MyQuery/library" , 1 )]
363+ operation_metrics = [("GraphQL/operation/Ariadne /query/MyQuery/library" , 1 )]
364364 operation_attrs = {
365365 "graphql.operation.type" : "query" ,
366366 "graphql.operation.name" : "MyQuery" ,
@@ -388,7 +388,7 @@ def _test():
388388
389389@dt_enabled
390390def test_field_resolver_metrics_and_attrs (app , graphql_run ):
391- field_resolver_metrics = [("GraphQL/resolve/GraphQL /hello" , 1 )]
391+ field_resolver_metrics = [("GraphQL/resolve/Ariadne /hello" , 1 )]
392392 graphql_attrs = {
393393 "graphql.field.name" : "hello" ,
394394 "graphql.field.parentType" : "Query" ,
0 commit comments