Skip to content

RUMM-2208: SDK v2 upload pipeline#956

Merged
0xnm merged 1 commit into
feature/sdkv2from
nogorodnikov/rumm-2208/sdk-v2-upload-pipeline
Jun 24, 2022
Merged

RUMM-2208: SDK v2 upload pipeline#956
0xnm merged 1 commit into
feature/sdkv2from
nogorodnikov/rumm-2208/sdk-v2-upload-pipeline

Conversation

@0xnm

@0xnm 0xnm commented Jun 22, 2022

Copy link
Copy Markdown
Member

What does this PR do?

This change brings the foundation of the upload pipeline for SDK v2 which is using a single Storage concept introduced before (meaning pipeline also leverages batch metadata).

In the nutshell upload job will read the batch available for the upload via Storage#readNextBatch call and will pass the batch and its metadata (if exists) to the uploader, which knows a) how to create a request (responsibility of the feature); b) how to execute it (responsibility of the SDK).

Most of the changes are done in the UploadWorker, DataOkHttpUploader, DataUploadRunnable classes (the last 2 are the copies of the v1 classes residing in the v2 package, this is done in order to avoid big changes in the SdkFeature, which will be done later).

Note, that this change doesn't yet support 1:many relationship between batch and requests created, this will be done in another task(s).

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 June 22, 2022 09:20
@0xnm
0xnm requested a review from a team as a code owner June 22, 2022 09:20
Comment thread dd-sdk-android/src/main/kotlin/com/datadog/android/v2/api/Request.kt Outdated
@0xnm
0xnm force-pushed the nogorodnikov/rumm-2208/sdk-v2-upload-pipeline branch from 4d3eb64 to ad334e5 Compare June 24, 2022 07:00
@0xnm
0xnm force-pushed the nogorodnikov/rumm-2208/sdk-v2-upload-pipeline branch from ad334e5 to 915dc30 Compare June 24, 2022 07:17
@0xnm
0xnm merged commit d150a63 into feature/sdkv2 Jun 24, 2022
@0xnm
0xnm deleted the nogorodnikov/rumm-2208/sdk-v2-upload-pipeline branch June 24, 2022 07:30
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants