@@ -82,8 +82,8 @@ def error_middleware(next, root, info, **args): # pylint: disable=W0622
82
82
("OtherTransaction/all" , 1 ),
83
83
("GraphQL/all" , 1 ),
84
84
("GraphQL/allOther" , 1 ),
85
- ("GraphQL/GraphQL /all" , 1 ),
86
- ("GraphQL/GraphQL /allOther" , 1 ),
85
+ ("GraphQL/Ariadne /all" , 1 ),
86
+ ("GraphQL/Ariadne /allOther" , 1 ),
87
87
]
88
88
89
89
@@ -118,17 +118,17 @@ def test_query_and_mutation(app, graphql_run):
118
118
("Python/Framework/GraphQL/%s" % version , 1 ),
119
119
]
120
120
_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 ),
125
125
]
126
126
_test_mutation_unscoped_metrics = [
127
127
("OtherTransaction/all" , 1 ),
128
128
("GraphQL/all" , 2 ),
129
- ("GraphQL/GraphQL /all" , 2 ),
129
+ ("GraphQL/Ariadne /all" , 2 ),
130
130
("GraphQL/allOther" , 2 ),
131
- ("GraphQL/GraphQL /allOther" , 2 ),
131
+ ("GraphQL/Ariadne /allOther" , 2 ),
132
132
] + _test_mutation_scoped_metrics
133
133
134
134
_expected_mutation_operation_attributes = {
@@ -180,8 +180,8 @@ def _test():
180
180
@dt_enabled
181
181
def test_middleware (app , graphql_run , is_graphql_2 ):
182
182
_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 ),
185
185
("Function/test_application:example_middleware" , 1 ),
186
186
]
187
187
@@ -212,8 +212,8 @@ def test_exception_in_middleware(app, graphql_run):
212
212
213
213
# Metrics
214
214
_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 ),
217
217
]
218
218
_test_exception_rollup_metrics = [
219
219
("Errors/all" , 1 ),
@@ -262,8 +262,8 @@ def test_exception_in_resolver(app, graphql_run, field):
262
262
263
263
# Metrics
264
264
_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 ),
267
267
]
268
268
_test_exception_rollup_metrics = [
269
269
("Errors/all" , 1 ),
@@ -326,7 +326,7 @@ def test_exception_in_validation(app, graphql_run, is_graphql_2, query, exc_clas
326
326
exc_class = callable_name (GraphQLError )
327
327
328
328
_test_exception_scoped_metrics = [
329
- # ('GraphQL/operation/GraphQL /<unknown>/<anonymous>/<unknown>', 1),
329
+ ('GraphQL/operation/Ariadne /<unknown>/<anonymous>/<unknown>' , 1 ),
330
330
]
331
331
_test_exception_rollup_metrics = [
332
332
("Errors/all" , 1 ),
@@ -360,7 +360,7 @@ def _test():
360
360
361
361
@dt_enabled
362
362
def 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 )]
364
364
operation_attrs = {
365
365
"graphql.operation.type" : "query" ,
366
366
"graphql.operation.name" : "MyQuery" ,
@@ -388,7 +388,7 @@ def _test():
388
388
389
389
@dt_enabled
390
390
def 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 )]
392
392
graphql_attrs = {
393
393
"graphql.field.name" : "hello" ,
394
394
"graphql.field.parentType" : "Query" ,
0 commit comments