-
Notifications
You must be signed in to change notification settings - Fork 330
fix(telemetry): improve error logging for custom trace_id generation #8149 #8149
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
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5b21d78
fix(telemetry): improve error logging for custom trace_id generation
juancarlosjr97 d3e465a
Merge branch 'dev' of github.com:juancarlosjr97/apollo-router into dev
juancarlosjr97 628d31a
test(telemetry): update test for error on custom trace_id parsing
juancarlosjr97 a99083e
Merge branch 'dev' into dev
juancarlosjr97 84a00bf
Update .changesets/feat_feat-enhance-error-logging-trace-id.md
juancarlosjr97 ce18a95
chore: update pull request reference for error logging enhancement
juancarlosjr97 fb2bcb3
Merge branch 'dev' into dev
juancarlosjr97 e9db8c7
chore: update pull request reference for error logging enhancement
juancarlosjr97 f737cac
chore: update pull request reference for error logging enhancement
juancarlosjr97 9de007f
tighten up changeset
goto-bus-stop 14eb37c
delete superfluous file
goto-bus-stop 99e5d88
Merge branch 'dev' into dev
abernix 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 hidden or 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 @@ | ||
| ### Improve error logging for malformed Trace IDs ([PR #8149](https://github.com/apollographql/router/pull/8149)) | ||
|
|
||
| When the router receives an unparseable Trace ID in incoming requests, the logged error message now includes the invalid value. Trace IDs can be unparseable due to invalid hexadecimal characters, incorrect length, or non-standard formats. | ||
|
|
||
| By [@juancarlosjr97](https://github.com/juancarlosjr97) in https://github.com/apollographql/router/pull/8149 |
This file contains hidden or 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 hidden or 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
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.
What does "format conversion options" refer to here? i'm not really familiar with this aspect of router telemetry but I don't understand what this means
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 was referring to this section - https://www.apollographql.com/docs/graphos/routing/observability/telemetry/trace-exporters/overview#request-configuration-reference.
The addition to the documentation is to make sure it is clear what the expectation for the trace ID
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.
Ahh perfect thank you!