-
Notifications
You must be signed in to change notification settings - Fork 385
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
impl(otel): no spans if no sleeps #13125
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13125 +/- ##
==========================================
- Coverage 92.97% 92.97% -0.01%
==========================================
Files 2135 2135
Lines 185654 185665 +11
==========================================
+ Hits 172618 172623 +5
- Misses 13036 13042 +6 ☔ View full report in Codecov by Sentry. |
I agree. Even if there is no sleeping, it may have other side effects (despite this "sleeper" deciding that it won't). |
@@ -58,8 +58,8 @@ std::unique_ptr<RetryPolicy> TestRetryPolicy() { | |||
} | |||
|
|||
std::unique_ptr<BackoffPolicy> TestBackoffPolicy() { | |||
return ExponentialBackoffPolicy(std::chrono::microseconds(1), |
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.
Are these changes related at all?
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.
Yeah. The backoff policy returns something in milliseconds, which rounds to 0.
virtual std::chrono::milliseconds OnCompletion() = 0; |
Motivated by #12959
I still like invoking the
sleeper
even when the duration is 0.This change is