Skip to content

Commit

Permalink
fix(router): add client info to metrics and spans
Browse files Browse the repository at this point in the history
  • Loading branch information
kschelonka committed Jan 8, 2025
1 parent ad4d225 commit 512bb69
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions servers/client-api/config/router.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,24 @@ telemetry:
# https://www.apollographql.com/docs/graphos/reference/router/telemetry/instrumentation/instruments#default_requirement_level
default_requirement_level: recommended
router:
http.server.active_requests: true # (default false)
http.server.request.body.size: true # (default false)
http.server.request.duration: true # (default false)
http.server.active_requests:
attributes:
'http.request.header.apollographql-client-name':
request_header: 'apollographql-client-name'
'http.request.header.apollographql-client-version':
request_header: 'apollographql-client-version'
http.server.request.body.size:
attributes:
'http.request.header.apollographql-client-name':
request_header: 'apollographql-client-name'
'http.request.header.apollographql-client-version':
request_header: 'apollographql-client-version'
http.server.request.duration:
attributes:
'http.request.header.apollographql-client-name':
request_header: 'apollographql-client-name'
'http.request.header.apollographql-client-version':
request_header: 'apollographql-client-version'
subgraph:
http.client.request.body.size: true # (default false)
http.client.request.duration: true # (default false)
Expand Down Expand Up @@ -130,6 +145,12 @@ telemetry:
supergraph:
attributes:
cost.estimated: true
router:
attributes:
'http.request.header.apollographql-client-name':
request_header: 'apollographql-client-name'
'http.request.header.apollographql-client-version':
request_header: 'apollographql-client-version'

apollo:
send_variable_values:
Expand Down

0 comments on commit 512bb69

Please sign in to comment.