Skip to content

RUMM-2789: Use message bus to report NDK crashes to RUM#1177

Merged
0xnm merged 1 commit into
feature/sdkv2from
nogorodnikov/rumm-2789/use-message-bus-for-ndk-crash-reporting-to-rum
Dec 8, 2022
Merged

RUMM-2789: Use message bus to report NDK crashes to RUM#1177
0xnm merged 1 commit into
feature/sdkv2from
nogorodnikov/rumm-2789/use-message-bus-for-ndk-crash-reporting-to-rum

Conversation

@0xnm

@0xnm 0xnm commented Dec 7, 2022

Copy link
Copy Markdown
Member

What does this PR do?

This PR changes the way NDK crashes are reported to RUM: now they will be sent through the message bus, because RUM feature may be optional and will reside in another module anyway.

Also there are now 2 different message types for the crashes coming to Logs and RUM: jvm_crash and ndk_crash. This way the code is simpler and is easier to test.

DatadogNdkCrashHandler now reads last view event as JSON (because RUM-specific deserializers won't be available), takes view ID, session ID and application ID from it and passes it to the RUM feature where further deserialization from JsonObject to the RUM-specific type is done.

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 marked this pull request as ready for review December 7, 2022 13:31
@0xnm
0xnm requested a review from a team as a code owner December 7, 2022 13:31
@0xnm
0xnm force-pushed the nogorodnikov/rumm-2789/use-message-bus-for-ndk-crash-reporting-to-rum branch from 85f25e7 to 57a9b74 Compare December 8, 2022 10:07
@codecov-commenter

codecov-commenter commented Dec 8, 2022

Copy link
Copy Markdown

Codecov Report

Merging #1177 (57a9b74) into feature/sdkv2 (ebf706c) will decrease coverage by 0.02%.
The diff coverage is 89.19%.

@@                Coverage Diff                @@
##           feature/sdkv2    #1177      +/-   ##
=================================================
- Coverage          82.17%   82.15%   -0.02%     
=================================================
  Files                352      355       +3     
  Lines              11929    11973      +44     
  Branches            2042     2049       +7     
=================================================
+ Hits                9802     9836      +34     
- Misses              1502     1503       +1     
- Partials             625      634       +9     
Impacted Files Coverage Δ
.../core/internal/net/info/NetworkInfoDeserializer.kt 100.00% <ø> (ø)
...core/internal/persistence/file/FileOrchestrator.kt 0.00% <0.00%> (ø)
...ence/file/advanced/ConsentAwareFileOrchestrator.kt 88.89% <0.00%> (ø)
.../persistence/file/single/SingleFileOrchestrator.kt 76.92% <ø> (ø)
...android/core/internal/user/UserInfoDeserializer.kt 100.00% <ø> (ø)
...ndroid/rum/internal/ndk/NdkCrashLogDeserializer.kt 66.67% <ø> (ø)
...atadog/android/v2/core/internal/storage/Storage.kt 0.00% <ø> (ø)
.../kotlin/com/datadog/android/v2/api/FeatureScope.kt 50.00% <50.00%> (ø)
...ore/internal/persistence/JsonObjectDeserializer.kt 64.29% <64.29%> (ø)
...in/com/datadog/android/log/internal/LogsFeature.kt 87.06% <86.05%> (-1.65%) ⬇️
... and 22 more

@0xnm
0xnm force-pushed the nogorodnikov/rumm-2789/use-message-bus-for-ndk-crash-reporting-to-rum branch from 57a9b74 to 1a7d32c Compare December 8, 2022 10:44
@0xnm
0xnm merged commit 16217da into feature/sdkv2 Dec 8, 2022
@0xnm
0xnm deleted the nogorodnikov/rumm-2789/use-message-bus-for-ndk-crash-reporting-to-rum branch December 8, 2022 13:07
@xgouchet xgouchet added this to the 1.17.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants