-
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.
Add
enabled
field for telemetry exporters
Part of #3226
- Loading branch information
bryn
committed
Oct 2, 2023
1 parent
e4244b1
commit 20bf2bb
Showing
57 changed files
with
246 additions
and
164 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,20 @@ | ||
### Add `enabled` field for telemetry exporters ([PR #3952](https://github.com/apollographql/router/pull/3952)) | ||
|
||
Telemetry configuration now supports `enabled` on all exporters. This allows exporters to be disabled without removing them from the configuration and in addition allows for a more streamlined default configuration. | ||
|
||
```diff | ||
telemetry: | ||
tracing: | ||
datadog: | ||
+ enabled: true | ||
jaeger: | ||
+ enabled: true | ||
otlp: | ||
+ enabled: true | ||
zipkin: | ||
+ enabled: true | ||
``` | ||
|
||
Existing configurations will be migrated to the new format automatically on startup. However, you should update your configuration to use the new format as soon as possible. | ||
|
||
By [@BrynCooke](https://github.com/BrynCooke) in https://github.com/apollographql/router/pull/3952 |
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
22 changes: 22 additions & 0 deletions
22
apollo-router/src/configuration/migrations/0012-telemetry-exporters-enabled.yaml
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 @@ | ||
description: Telemetry exporters now have an enabled field | ||
actions: | ||
- type: add | ||
path: telemetry.tracing.jaeger | ||
name: enabled | ||
value: true | ||
- type: add | ||
path: telemetry.tracing.otlp | ||
name: enabled | ||
value: true | ||
- type: add | ||
path: telemetry.tracing.zipkin | ||
name: enabled | ||
value: true | ||
- type: add | ||
path: telemetry.tracing.datadog | ||
name: enabled | ||
value: true | ||
- type: add | ||
path: telemetry.metrics.otlp | ||
name: enabled | ||
value: 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 |
---|---|---|
|
@@ -10,4 +10,5 @@ telemetry: | |
endpoint: default | ||
batch_processor: | ||
scheduled_delay: 100ms | ||
enabled: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ telemetry: | |
endpoint: default | ||
batch_processor: | ||
max_export_timeout: 5s | ||
enabled: true | ||
|
Oops, something went wrong.