-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Do not allow setting measurement if transaction is finished #1026
Conversation
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
@@ -284,6 +284,9 @@ class SentryTracer extends ISentrySpan { | |||
|
|||
@override | |||
void setMeasurement(String name, num value, {SentryMeasurementUnit? unit}) { | |||
if (finished) { | |||
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.
l
: Maybe log a debug message.
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.
There's a separate issue to make the tracer loggable because we don't have the instance of the logger, but we'll do it soon.
Codecov ReportBase: 90.12% // Head: 91.37% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1026 +/- ##
==========================================
+ Coverage 90.12% 91.37% +1.24%
==========================================
Files 114 9 -105
Lines 3554 197 -3357
==========================================
- Hits 3203 180 -3023
+ Misses 351 17 -334 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. |
📜 Description
Related to #1011.
💡 Motivation and Context
Does not allow setting measurement if transaction is finished
💚 How did you test it?
📝 Checklist
🔮 Next steps