-
Notifications
You must be signed in to change notification settings - Fork 375
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
fix(errors): revert breaking change #3796
Conversation
2f6823b
to
dcda9d0
Compare
BenchmarksBenchmark execution time: 2024-07-19 15:11:43 Comparing candidate commit dcda9d0 in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 9 metrics, 2 unstable metrics. scenario:Tracing.log_correlation
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3796 +/- ##
==========================================
- Coverage 97.91% 97.89% -0.03%
==========================================
Files 1248 1248
Lines 75192 75197 +5
Branches 3638 3638
==========================================
- Hits 73628 73615 -13
- Misses 1564 1582 +18 ☔ View full report in Codecov by Sentry. |
Datadog::Core.log_deprecation do | ||
'Errors.set_error(..) is deprecated. ' \ | ||
'Use Errors.set_error_tags(..) instead.' | ||
end |
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 set_error
deprecated?
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.
Errors.set_error
shadows SpanOperation.set_error
. SpanOperation.set_error
always sets the status on a Span to error. In OpenTelemetry we need to decouple setting error tags from setting error statuses. To do this I renamed Errors.set_error
to Errors.set_error_tags
in a previous PR. This was a breaking change. Here I am adding set_error_tags
back but deprecating it to avoid maintaining two methods that do the exact same thing.
What does this PR do?
#3776 renamed the Error.set_error method to set_error_tags. Renaming a method in the public api is a breaking change. This PR reverts this breaking change and adds deprecation warning.
Motivation:
Additional Notes:
How to test the change?
Unsure? Have a question? Request a review!