-
Notifications
You must be signed in to change notification settings - Fork 339
Drop OpenCensus use in various test packages #3202
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
One small question, but I'm happy to LGTM when it's time.
test/logging/logging.go
Outdated
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on figuring what the utility of this is as a follow up
|
/lgtm |
|
/hold cancel |
Cali0707
left a 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.
/lgtm
/approve
|
[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