Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUMM-2342 Add support to v2 request #99

Merged
merged 3 commits into from
Jul 20, 2022

Conversation

xgouchet
Copy link
Member

What does this PR do?

Adapt the payload format to API v2

Motivation

Stay compatible with the backend processor evolutions

@xgouchet xgouchet requested a review from a team as a code owner July 19, 2022 15:26
@@ -30,6 +36,7 @@ internal class OkHttpUploader : Uploader {
.Builder()
.callTimeout(NETWORK_TIMEOUT_MS, TimeUnit.MILLISECONDS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems call timeout already includes time for both write and connect stages, so shouldn't we either keep only call timeout, or remove it and use a set of connect, write, read timeouts (read timeout probably doesn't matter)?

@xgouchet xgouchet requested a review from rpelliard July 20, 2022 12:46
@xgouchet xgouchet force-pushed the xgouchet/RUMM-2342/support_v2_api branch from 95c7ef4 to 2822016 Compare July 20, 2022 13:12
@xgouchet xgouchet force-pushed the xgouchet/RUMM-2342/support_v2_api branch from 2822016 to a411dd9 Compare July 20, 2022 13:55
@xgouchet xgouchet requested a review from rpelliard July 20, 2022 13:56
Copy link

@rpelliard rpelliard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codecov-commenter
Copy link

Codecov Report

Merging #99 (a411dd9) into develop (07ce5a5) will decrease coverage by 0.52%.
The diff coverage is 84.00%.

@@              Coverage Diff              @@
##             develop      #99      +/-   ##
=============================================
- Coverage      89.96%   89.44%   -0.52%     
+ Complexity       147      146       -1     
=============================================
  Files             20       20              
  Lines            448      464      +16     
  Branches          50       52       +2     
=============================================
+ Hits             403      415      +12     
- Misses            28       30       +2     
- Partials          17       19       +2     
Impacted Files Coverage Δ
...m/datadog/gradle/plugin/internal/OkHttpUploader.kt 86.30% <84.00%> (-1.42%) ⬇️
...in/kotlin/com/datadog/gradle/plugin/DatadogSite.kt 80.00% <0.00%> (-6.67%) ⬇️

@xgouchet xgouchet merged commit ff786ff into develop Jul 20, 2022
@xgouchet xgouchet deleted the xgouchet/RUMM-2342/support_v2_api branch July 20, 2022 14:33
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