Bypass tracing handler if tracing is disabled#11016
Conversation
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
julz
left a comment
There was a problem hiding this comment.
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.
It is, but the thing wants something that looks like an actual ID. "foo" doesn't work 😂
|
[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 DetailsNeeds 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