-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Bypass tracing handler if tracing is disabled #11016
Bypass tracing handler if tracing is disabled #11016
Conversation
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.
/lgtm
/approve
Codecov Report
@@ Coverage Diff @@
## main #11016 +/- ##
==========================================
+ Coverage 88.01% 88.03% +0.02%
==========================================
Files 189 190 +1
Lines 9134 9142 +8
==========================================
+ Hits 8039 8048 +9
Misses 839 839
+ Partials 256 255 -1
Continue to review full report at Codecov.
|
2d2bb2e
to
ed79b4d
Compare
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.
lgtm except maybe a copypaste mistake on copyright header?
|
||
resp := httptest.NewRecorder() | ||
req := httptest.NewRequest(http.MethodPost, "http://example.com", nil) | ||
const traceID = "821e0d50d931235a5ba3fa42eddddd8f" |
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 is very specific :)
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.
It is, but the thing wants something that looks like an actual ID. "foo" doesn't work 😂
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: julz, vagababov The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
56de737
to
8242fc9
Compare
/lgtm |
/retest |
1 similar comment
/retest |
Proposed Changes
This drops a whopping 55 allocations per request from both the activator and the queue-proxy if tracing is disabled. We'd love to reduce the tracing overhead in general of course, but this at least relieves the situation for people that are not running tracing at all.
Benchmark results
Release Note
/assign @julz @vagababov