-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(telemetry): do not create custom events if level is off (#5165)
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
90 additions
and
31 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,26 @@ | ||
### Do not create custom events in telemetry if level is off ([PR #5165](https://github.com/apollographql/router/pull/5165)) | ||
|
||
Don't create custom events and attributes if you set the level to `off` | ||
|
||
example of configuration: | ||
|
||
```yaml | ||
telemetry: | ||
instrumentation: | ||
events: | ||
router: | ||
# Standard events | ||
request: info | ||
response: info | ||
error: info | ||
|
||
# Custom events | ||
my.disabled_request_event: | ||
message: "my event message" | ||
level: off # Disabled because we set the level to off | ||
on: request | ||
attributes: | ||
http.request.body.size: true | ||
``` | ||
|
||
By [@bnjjj](https://github.com/bnjjj) in https://github.com/apollographql/router/pull/5165 |
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