-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This extracts the tests for opentelemetry's parent based sampling that were introduced in #3109 --------- Co-authored-by: bryn <[email protected]> Co-authored-by: Bryn Cooke <[email protected]> Co-authored-by: Jeremy Lempereur <[email protected]>
- Loading branch information
1 parent
dd7bac0
commit 2627143
Showing
7 changed files
with
271 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### Parent based sampling tests ([PR #3136](https://github.com/apollographql/router/pull/3136)) | ||
|
||
This adds test for OpenTelemetry sampling defined either in the configuration or in headers carried by the request | ||
|
||
By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/3136 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
telemetry: | ||
apollo: | ||
field_level_instrumentation_sampler: always_off | ||
tracing: | ||
|
||
experimental_response_trace_id: | ||
enabled: true | ||
header_name: apollo-custom-trace-id | ||
propagation: | ||
jaeger: true | ||
trace_config: | ||
service_name: router | ||
sampler: always_off | ||
jaeger: | ||
batch_processor: | ||
scheduled_delay: 100ms | ||
agent: | ||
endpoint: default | ||
experimental_logging: | ||
when_header: | ||
- name: apollo-router-log-request | ||
value: test | ||
headers: true # default: false | ||
body: true # default: false | ||
# log request for all requests coming from Iphones | ||
- name: custom-header | ||
match: ^foo.* | ||
headers: true | ||
override_subgraph_url: | ||
products: http://localhost:4005 | ||
include_subgraph_errors: | ||
all: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
telemetry: | ||
tracing: | ||
experimental_response_trace_id: | ||
enabled: true | ||
header_name: apollo-custom-trace-id | ||
trace_config: | ||
service_name: router | ||
sampler: always_on | ||
experimental_logging: | ||
when_header: | ||
- name: apollo-router-log-request | ||
value: test | ||
headers: true # default: false | ||
body: true # default: false | ||
# log request for all requests coming from Iphones | ||
- name: custom-header | ||
match: ^foo.* | ||
headers: true | ||
override_subgraph_url: | ||
products: http://localhost:4005 | ||
include_subgraph_errors: | ||
all: true |
Oops, something went wrong.