Skip to content

Commit 117921e

Browse files
authored
fix(metrics): add in active request data (#1023)
1 parent 58ea61e commit 117921e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

servers/client-api/config/router.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,18 @@ telemetry:
8585
# https://www.apollographql.com/docs/graphos/reference/router/telemetry/instrumentation/instruments#default_requirement_level
8686
default_requirement_level: recommended
8787
router:
88-
http.server.active_requests: true
88+
http.server.active_requests:
89+
http.response.status_code: true
90+
'graphql.operation.name': # Will set this attribute with the operation name
91+
operation_name: string
92+
'graphql.errors': # Will set this attribute to true if it contains graphql error (includes unauthorized)
93+
on_graphql_error: true
94+
'graphql.critical.error':
95+
error: reason
96+
'http.request.header.apollographql-client-name':
97+
request_header: 'apollographql-client-name'
98+
'http.request.header.apollographql-client-version':
99+
request_header: 'apollographql-client-version'
89100
http.server.request.body.size:
90101
attributes:
91102
'http.request.header.apollographql-client-name':

0 commit comments

Comments
 (0)