Drop OpenCensus use in various test packages#3202
Conversation
I don't believe we are exporting traces in any of our OSS tests For test/logging we're just returning a noop span for now
|
/hold |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3202 +/- ##
=======================================
Coverage ? 76.07%
=======================================
Files ? 205
Lines ? 11751
Branches ? 0
=======================================
Hits ? 8940
Misses ? 2539
Partials ? 272 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/assign @evankanderson @Cali0707 @skonto |
evankanderson
left a comment
There was a problem hiding this comment.
/approve
One small question, but I'm happy to LGTM when it's time.
| func GetEmitableSpan(ctx context.Context, metricName string) *trace.Span { | ||
| _, span := trace.StartSpan(ctx, emitableSpanNamePrefix+metricName) | ||
| func GetEmitableSpan(ctx context.Context, metricName string) trace.Span { | ||
| _, span := noopTracer.Start(ctx, metricName) |
There was a problem hiding this comment.
Why is this always noopTracer? Is that because this is in the testing package?
Maybe put a comment on line 36 about the why of noopTracer.
There was a problem hiding this comment.
Why is this always noopTracer? Is that because this is in the testing package?
We had tracing in our tests WAAAY back. I don't think we use it for anything anymore so I was thinking of removing this but there's quite a few places this method is used downstream and don't think it's worth breaking right now.
So I figured I'd make this a noop.
I can create a follow up issue if you prefer
There was a problem hiding this comment.
I'll just leave a regular tracer for now.
We should figure out what utility this has in a follow up.
There was a problem hiding this comment.
+1 on figuring what the utility of this is as a follow up
|
/lgtm |
|
/hold cancel |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, dprotaso, evankanderson 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 |
Merge #3189 first