Skip to content

Ignore IO exceptions in Kronos for telemetry reporting#910

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/ignore-ioexceptions-in-kronos-for-telemetry
Apr 27, 2022
Merged

Ignore IO exceptions in Kronos for telemetry reporting#910
0xnm merged 1 commit into
developfrom
nogorodnikov/ignore-ioexceptions-in-kronos-for-telemetry

Conversation

@0xnm

@0xnm 0xnm commented Apr 25, 2022

Copy link
Copy Markdown
Member

What does this PR do?

This change widens the scope of the exceptions thrown by Kronos library to be reported with telemetry. Apparently it can throw InvalidServerReplyException when server is not a valid state (like leap value is equal to 0b11, meaning server is not synchronized, check NTP RFC).

We cannot address such issues anyway and if NTP servers are not healthy it will be caught by infra monitoring.

To avoid spammy telemetry entries this PR adds all IOException instances to the ignore list.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm
0xnm requested a review from a team as a code owner April 25, 2022 08:34
@codecov-commenter

codecov-commenter commented Apr 25, 2022

Copy link
Copy Markdown

Codecov Report

Merging #910 (fcde821) into develop (17addad) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #910      +/-   ##
===========================================
+ Coverage    83.04%   83.06%   +0.01%     
===========================================
  Files          267      267              
  Lines         9047     9047              
  Branches      1453     1453              
===========================================
+ Hits          7513     7514       +1     
+ Misses        1139     1137       -2     
- Partials       395      396       +1     
Impacted Files Coverage Δ
.../android/core/internal/time/LoggingSyncListener.kt 100.00% <100.00%> (ø)
...android/rum/internal/ndk/DatadogNdkCrashHandler.kt 87.36% <0.00%> (-0.57%) ⬇️
...ndroid/core/internal/persistence/file/EventMeta.kt 90.00% <0.00%> (+10.00%) ⬆️

@0xnm
0xnm merged commit fa2f94c into develop Apr 27, 2022
@0xnm
0xnm deleted the nogorodnikov/ignore-ioexceptions-in-kronos-for-telemetry branch April 27, 2022 09:42
@xgouchet xgouchet added this to the 1.13.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants