-
Notifications
You must be signed in to change notification settings - Fork 566
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
feat(otelgin): enhance gin error tracking with span recording #6346
Open
flc1125
wants to merge
23
commits into
open-telemetry:main
Choose a base branch
from
flc1125:gintrace-recorderror
base: main
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.
+43
−3
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
60f2e0c
feat(otelgin): enhance gin error tracking with span recording
flc1125 afe0635
Merge branch 'main' into gintrace-recorderror
flc1125 7817837
feat(otelgin): enhance gin error tracking with span recording
flc1125 dcc6c62
feat(otelgin): enhance gin error tracking with span recording
flc1125 f5d9a1c
Update CHANGELOG.md
flc1125 84f2f0e
test(otelgin): Add tests for span recording on errors
flc1125 e5ef74d
refactor(otelgin): Remove unused dependencies and simplify tests
flc1125 9cdd7d6
refactor(otelgin): Remove unused dependencies and simplify tests
flc1125 9b368d5
Merge branch 'main' into gintrace-recorderror
flc1125 cc1c612
test(instrumentation): remove `gin.errors` assertion in gintrace_test.go
flc1125 fc2dd22
Update instrumentation/github.com/gin-gonic/gin/otelgin/gintrace.go
flc1125 488835c
feat(otelgin): refine gin trace error handling and test cases
flc1125 92ff337
feat(otelgin): refine gin trace error handling and test cases
flc1125 23949c7
test(otelgin): remove redundant code
flc1125 5f403b8
chore(otelgin): refine error recording in gintrace
flc1125 1fa4d17
Merge branch 'main' into gintrace-recorderror
flc1125 05c91e7
Update CHANGELOG.md
flc1125 8c62a63
Update instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace…
flc1125 0a2260d
chore(otelgin): adjust imports sorting
flc1125 733d40a
Merge remote-tracking branch 'origin/gintrace-recorderror' into gintr…
flc1125 d280f2e
Merge branch 'main' into gintrace-recorderror
flc1125 3ab2b2c
feat(otelgin): enhance error handling and test coverage in gintrace
flc1125 a690136
Update instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace…
flc1125 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
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.
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.
gin error
isn't very meaningful.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.
Wont this duplicate, in a less useful flattened string from, the information being added as events below?
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.
@akats7 We can discuss it here. It should be the same issue here.
r: #6346 (comment)
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 recommend using this method to record:
span.SetStatus(codes.Error, c.Errors.String())
I would like to hear everyone's suggestions.
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.
From: #6346 (comment)
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.
Personally, I do not mind duplication in an error scenario.