-
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.
Metrics and root span creation now happen first
Our metrics are currently mutated at the supergraph service. This is a throwback from when the router service did not exist. Move operation count metrics to the first thing that happens in the pipeline. Note that this won't catch disconnects because they are reliant on the status code of the response, which will stop processing before the metric is incremented. Fixes #3915
- Loading branch information
bryn
committed
Sep 27, 2023
1 parent
bca9d86
commit 055faac
Showing
5 changed files
with
52 additions
and
25 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,12 @@ | ||
### Ensure that telemetry happens first ([Issue #3915](https://github.com/apollographql/router/issues/3915)) | ||
|
||
Telemetry related logic is now moved to the first thing in the router pipeline. | ||
|
||
Previously the metric `apollo.router.operations` may have missed some requests if they were failed at the router stage. | ||
In addition, some logic happened before root spans were created, which would have caused missing traces. | ||
|
||
`apollo.router.operations` and root spans are now the first thing that happens in the router pipeline for graphql requests. | ||
|
||
|
||
|
||
By [@BrynCooke](https://github.com/BrynCooke) in https://github.com/apollographql/router/pull/3919 |
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
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