-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
Expose end_timestamp
in Span#finish
and Transaction#finish
#1946
Conversation
Codecov ReportBase: 96.56% // Head: 98.35% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## neel/otel/expose-span-id #1946 +/- ##
============================================================
+ Coverage 96.56% 98.35% +1.78%
============================================================
Files 121 151 +30
Lines 7723 9380 +1657
============================================================
+ Hits 7458 9226 +1768
+ Misses 265 154 -111
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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 think this can base on master
instead.
sentry-ruby/lib/sentry/span.rb
Outdated
@@ -90,11 +90,11 @@ def initialize( | |||
|
|||
# Finishes the span by adding a timestamp. | |||
# @return [self] | |||
def finish | |||
def finish(end_timestamp: nil) | |||
# already finished | |||
return if @timestamp |
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 isn't mentioned in the spec so I want to double check it: we only allow the first override but not the second time or later?
If that's true, can we add a test case for it?
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.
ah no, it should override either way, good catch!
@@ -90,11 +90,11 @@ def initialize( | |||
|
|||
# Finishes the span by adding a timestamp. | |||
# @return [self] |
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.
We forgot to mention that it could return nil
too (early return)
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 think it should never return nil, will also fix
f2d6d71
to
e863e25
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.
I think we can merge this once the changelog entry is updated + the build is fixed by updating the base branch.
954d6a2
to
833392f
Compare
e863e25
to
85d1c67
Compare
No description provided.