-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per-operation and client error metric #6443
Open
bonnici
wants to merge
23
commits into
dev
Choose a base branch
from
njm/P-1319/error-cat-poc
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+236
−10
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
e369240
POC error metric
bonnici 98eef0a
Cleaned up POC
bonnici 4e4d728
Remove temp code
bonnici 38d4517
Merge branch 'next' into njm/P-1319/error-cat-poc
bonnici b6e97be
Merge and accept header fix
bonnici f98b608
lint fix
bonnici ff44170
Merge branch 'next' into njm/P-1319/error-cat-poc
bonnici 5284c2b
Merge branch 'next' into njm/P-1319/error-cat-poc
bonnici 90eaebd
Configuration
bonnici 498bbeb
lint fix
bonnici d2e2610
snapshot update
bonnici 2145777
Merge branch 'next' into njm/P-1319/error-cat-poc
bonnici a46fee7
Unit test
bonnici da4e95c
update dev docs
bonnici e7b18e9
Added changeset
bonnici 4a753af
Merge branch 'next' into njm/P-1319/error-cat-poc
bonnici 054c87d
Merge branch 'next' into njm/P-1319/error-cat-poc
bonnici 0561648
Refactor to make it easier to get path and service
bonnici 9b996e6
Merge branch 'dev' into njm/P-1319/error-cat-poc
bonnici c213521
Merge branch 'dev' into njm/P-1319/error-cat-poc
bonnici 3a09ee8
Update changeset
bonnici abea7ac
Merge branch 'dev' into njm/P-1319/error-cat-poc
bonnici 872a8f3
opentelemetry_api::KeyValue is now in opentelemetry::
SimonSapin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,13 @@ | ||
### Experimental per-operation error metrics ([PR #6443](https://github.com/apollographql/router/pull/6443)) | ||
|
||
Adds a new experimental OpenTelemetry metric that includes error counts at a per-operation and per-client level. These metrics contain the following attributes: | ||
* Operation name | ||
* Operation type (query/mutation/subscription) | ||
* Apollo operation ID | ||
* Client name | ||
* Client version | ||
* Error code | ||
|
||
This metric is currently only sent to GraphOS and is not available in 3rd-party OTel destinations. The metric can be enabled using the configuration `telemetry.apollo.errors.experimental_otlp_error_metrics: enabled`. | ||
|
||
By [@bonnici](https://github.com/bonnici) in https://github.com/apollographql/router/pull/6443 |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that the Router team has asked for this to be a private metric - would that mean we would need to call it
apollo_private.router.operations.error
? Ultimately we don't want it to be, so I'm fine with it not being private at all.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should pass the "private" filter regex and not pass the "public" filter regex, so it should be private. I don't really know how to test that thought because it is still coming through in prometheus.