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.
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
otelhttp: Record metrics on timed out requests #4634
otelhttp: Record metrics on timed out requests #4634
Changes from 2 commits
a971219
a52aa2d
39362c3
55b12a7
d521689
d6d3728
4cd08b4
2a310bd
c5e3cba
4bde186
ccf1f47
238bcb6
caf1167
b76e57b
0fbf817
85a8e2b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Please add a note, including a link, about where this is copied from.
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.
Happy to do this, but it sounding like the better option might be the SDK native one (so long as we would not need the flexibility of calling those
.Add
and.Record
methods in such a way where we want different behavior based on the context's cancelled state)?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.
Added, in case we opt to merge this PR. Thanks @MrAlias!
Check warning on line 289 in instrumentation/net/http/otelhttp/handler.go
Codecov / codecov/patch
instrumentation/net/http/otelhttp/handler.go#L289
Check warning on line 299 in instrumentation/net/http/otelhttp/handler.go
Codecov / codecov/patch
instrumentation/net/http/otelhttp/handler.go#L298-L299
Check warning on line 303 in instrumentation/net/http/otelhttp/handler.go
Codecov / codecov/patch
instrumentation/net/http/otelhttp/handler.go#L302-L303
Check warning on line 311 in instrumentation/net/http/otelhttp/handler.go
Codecov / codecov/patch
instrumentation/net/http/otelhttp/handler.go#L310-L311
Check warning on line 315 in instrumentation/net/http/otelhttp/handler.go
Codecov / codecov/patch
instrumentation/net/http/otelhttp/handler.go#L314-L315