Skip to content

RUMM-2674: Make implementations of EventBatchWriter return result instead of using listener#1097

Merged
0xnm merged 1 commit into
feature/sdkv2from
nogorodnikov/rumm-2674/implementations-of-eventbatchwriter-sync
Oct 21, 2022
Merged

RUMM-2674: Make implementations of EventBatchWriter return result instead of using listener#1097
0xnm merged 1 commit into
feature/sdkv2from
nogorodnikov/rumm-2674/implementations-of-eventbatchwriter-sync

Conversation

@0xnm

@0xnm 0xnm commented Oct 21, 2022

Copy link
Copy Markdown
Member

What does this PR do?

Implementations of EventBatchWriter are not supposed to switch the thread, because Storage#writeCurrentBatch is going to do that. Considering that, we can assume that implementations EventBatchWriter will be synchronous and can simply return result of the write operation instead of using the listener.

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 October 21, 2022 07:46
@xgouchet xgouchet added the size-small This PR is small sized label Oct 21, 2022
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #1097 (b9f4dc8) into feature/sdkv2 (cabffad) will decrease coverage by 0.10%.
The diff coverage is 100.00%.

@@                Coverage Diff                @@
##           feature/sdkv2    #1097      +/-   ##
=================================================
- Coverage          82.66%   82.56%   -0.10%     
=================================================
  Files                349      349              
  Lines              11229    11224       -5     
  Branches            1838     1837       -1     
=================================================
- Hits                9282     9267      -15     
- Misses              1388     1395       +7     
- Partials             559      562       +3     
Impacted Files Coverage Δ
...rnal/persistence/file/batch/BatchFileDataWriter.kt 88.24% <100.00%> (+6.42%) ⬆️
...d/v2/core/internal/storage/FileEventBatchWriter.kt 95.24% <100.00%> (ø)
...d/v2/core/internal/storage/NoOpEventBatchWriter.kt 100.00% <100.00%> (ø)
...id/webview/internal/rum/WebViewRumEventConsumer.kt 76.74% <0.00%> (-9.30%) ⬇️
...droid/rum/tracking/FragmentViewTrackingStrategy.kt 75.00% <0.00%> (-3.85%) ⬇️
...rsistence/file/batch/PlainBatchFileReaderWriter.kt 86.27% <0.00%> (-1.96%) ⬇️
...ain/java/com/datadog/opentracing/PendingTrace.java 58.62% <0.00%> (-1.72%) ⬇️
...rc/main/java/com/datadog/opentracing/DDTracer.java 55.65% <0.00%> (-0.84%) ⬇️
.../android/rum/internal/monitor/DatadogRumMonitor.kt 91.91% <0.00%> (-0.58%) ⬇️
...src/main/kotlin/com/datadog/android/DatadogSite.kt 86.67% <0.00%> (ø)
... and 4 more

@0xnm
0xnm merged commit fa58718 into feature/sdkv2 Oct 21, 2022
@0xnm
0xnm deleted the nogorodnikov/rumm-2674/implementations-of-eventbatchwriter-sync branch October 21, 2022 13:01
@xgouchet xgouchet added this to the 1.16.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-small This PR is small sized

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants