Added a new selector request_context for the router service. Now the supergraph schema id is also available through the context so if you want to access or display this schema id at the router service level you can now configure it like this:
telemetry:
instrumentation:
events:
router:
my.request_event:
message: "my request event message"
level: info
on: request
attributes:
schema.id:
request_context: "apollo::supergraph_schema_id" # The key containing the supergraph schema id
It can be used in any services at any stages. This example is using selectors on event's attributes but it can also be done on spans and instruments.
Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
[x] Changes are compatible[^1]
[x] Documentation[^2] completed
[ ] Performance impact assessed and acceptable
Tests added and passing[^3]
[x] Unit Tests
[x] Integration Tests
[x] Manual Tests
Exceptions
Note any exceptions here
Notes
[^1]: It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this.
[^2]: Configuration is an important part of many changes. Where applicable please try to document configuration examples.
[^3]: Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.
[ ] events - Stress test for events with a lot of users and deduplication ENABLED
[ ] events_big_cap_high_rate - Stress test for events with a lot of users, deduplication enabled and high rate event with a big queue capacity
[ ] events_big_cap_high_rate_callback - Stress test for events with a lot of users, deduplication enabled and high rate event with a big queue capacity using callback mode
[ ] events_callback - Stress test for events with a lot of users and deduplication ENABLED in callback mode
[ ] events_without_dedup - Stress test for events with a lot of users and deduplication DISABLED
[ ] events_without_dedup_callback - Stress test for events with a lot of users and deduplication DISABLED using callback mode
Added a new selector
request_context
for the router service. Now the supergraph schema id is also available through the context so if you want to access or display this schema id at the router service level you can now configure it like this:It can be used in any services at any stages. This example is using selectors on event's attributes but it can also be done on spans and instruments.
Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Note any exceptions here
Notes
[^1]: It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. [^2]: Configuration is an important part of many changes. Where applicable please try to document configuration examples. [^3]: Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.