Skip to content

Remove the dd-sketches dependency and related logic#2062

Merged
mariusc83 merged 1 commit into
feature/otel-supportfrom
mconstantin/remove-ddsketches-dependency
May 29, 2024
Merged

Remove the dd-sketches dependency and related logic#2062
mariusc83 merged 1 commit into
feature/otel-supportfrom
mconstantin/remove-ddsketches-dependency

Conversation

@mariusc83

Copy link
Copy Markdown
Member

What does this PR do?

A brief description of the change being made with this pull request.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

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)

@mariusc83 mariusc83 self-assigned this May 29, 2024
@mariusc83
mariusc83 requested review from a team as code owners May 29, 2024 14:56
@@ -1 +1,2 @@
-keepnames class java.util.function.Function { *; } No newline at end of file
-keepnames class java.util.function.Function { *; }
-dontwarn com.google.auto.** No newline at end of file

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was added in this PR just for more speed. It is required by the OpenTelemetry API dependency which complains in R8

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

PR just for more speed

I'm not clear how does it speed up the things. I don't think we should add this line anyway, com.google.auto.* may exist in customer dependencies.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it is not for speeding up it is just to not have a second PR sorry for the confusion :).
I actually wonder if we should use keep here and make sure these classes will never be obfuscated.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I wonder if we should do anything about it here or just leave this on the customer side and mention in the docs ? In any case without any action from our side R8 fails when compiling the APK

@mariusc83
mariusc83 force-pushed the mconstantin/remove-ddsketches-dependency branch from 2e81fd8 to 7efc7ef Compare May 29, 2024 15:06
@mariusc83
mariusc83 force-pushed the mconstantin/remove-ddsketches-dependency branch from 7efc7ef to 868fd0a Compare May 29, 2024 15:18
@codecov-commenter

codecov-commenter commented May 29, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.30%. Comparing base (1dd0f18) to head (868fd0a).

Additional details and impacted files
@@                   Coverage Diff                    @@
##           feature/otel-support    #2062      +/-   ##
========================================================
+ Coverage                 66.91%   67.30%   +0.39%     
========================================================
  Files                       737      733       -4     
  Lines                     27244    27027     -217     
  Branches                   4598     4573      -25     
========================================================
- Hits                      18228    18188      -40     
+ Misses                     7798     7616     -182     
- Partials                   1218     1223       +5     
Files Coverage Δ
...ace/bootstrap/instrumentation/api/AgentTracer.java 7.64% <ø> (+0.14%) ⬆️
...c/main/java/com/datadog/trace/core/CoreTracer.java 71.67% <ø> (+0.10%) ⬆️
...ace/core/datastreams/NoOpDataStreamMonitoring.java 23.08% <ø> (-5.49%) ⬇️
...atadog/trace/core/propagation/CorePropagation.java 28.57% <100.00%> (+0.79%) ⬆️
...og/trace/core/propagation/NoOpCorePropagation.java 0.00% <ø> (ø)

... and 26 files with indirect coverage changes

@mariusc83
mariusc83 merged commit 39c7c04 into feature/otel-support May 29, 2024
@mariusc83
mariusc83 deleted the mconstantin/remove-ddsketches-dependency branch May 29, 2024 15:52
@xgouchet xgouchet added this to the 2.11.x milestone Jul 31, 2024
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