Fix the regression for the TelemetryErrorEvent with throwable#2325
Merged
mariusc83 merged 1 commit intoOct 18, 2024
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2325 +/- ##
===========================================
- Coverage 70.41% 70.40% -0.01%
===========================================
Files 739 739
Lines 27536 27538 +2
Branches 4614 4616 +2
===========================================
- Hits 19388 19387 -1
+ Misses 6866 6862 -4
- Partials 1282 1289 +7
|
mariusc83
force-pushed
the
mconstantin/fix-regression-on-telemetry-with-throwable-event
branch
2 times, most recently
from
October 16, 2024 18:43
cd8067a to
ab5dca2
Compare
mariusc83
force-pushed
the
mconstantin/fix-regression-on-telemetry-with-throwable-event
branch
from
October 17, 2024 09:20
ab5dca2 to
ebd0dba
Compare
mariusc83
marked this pull request as ready for review
October 17, 2024 09:23
ambushwork
reviewed
Oct 17, 2024
mariusc83
force-pushed
the
mconstantin/fix-regression-on-telemetry-with-throwable-event
branch
2 times, most recently
from
October 17, 2024 12:27
9122d0c to
9e16282
Compare
mariusc83
force-pushed
the
mconstantin/fix-regression-on-telemetry-with-throwable-event
branch
from
October 17, 2024 13:21
9e16282 to
7fa8445
Compare
ambushwork
approved these changes
Oct 17, 2024
mariusc83
deleted the
mconstantin/fix-regression-on-telemetry-with-throwable-event
branch
October 18, 2024 07:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
When we refactor the Telemetry handling logic we missed a case when the
Log.Erroris reported with athrowable. Main reason why we missed this is that our integration tests were not reporting the problem in the CI (they were failing but this was not visible in the CI due to an issue in the shell environment on MacOs runners). This issue was currently discovered by @ambushwork while manually running the integration tests on his end.There were 2 main problems caused by this regression was that in case this method was used
fun error(message: String, throwable: Throwable):stacktraceandkindwere not correctly resolved from theThrowable.kind=nulland second withthrowablebecause of the way we were resolving theidentifierthey were both considered same event and second one would not be sent.The impact is quite high as it is affecting all our telemetry error logs that are reporting only the
Throwable.Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)