Skip to content

Remove the possibility to read Tracer config from env and from config file#2564

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/remove-tracer-config-values-initialization-from-env-and-file
Mar 24, 2025
Merged

Remove the possibility to read Tracer config from env and from config file#2564
0xnm merged 1 commit into
developfrom
nogorodnikov/remove-tracer-config-values-initialization-from-env-and-file

Conversation

@0xnm

@0xnm 0xnm commented Mar 21, 2025

Copy link
Copy Markdown
Member

What does this PR do?

This PR removes the functionality of reading Tracer config from env variables and config file: both are options are not possible on Android.

It gives saves quite a good time during the Tracer initialization:

  • before the change

before the change

  • after the change

after the change

In theory, we can also remove config read from system properties (System.getProperties), but these ones can be set from the process (unlike env variables). Unlikely that it is used by any customer, but anyway removal of this block won't give a significant gain.

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 review from a team as code owners March 21, 2025 16:27
@codecov-commenter

codecov-commenter commented Mar 24, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.17%. Comparing base (86a6b46) to head (cae2815).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2564      +/-   ##
===========================================
- Coverage    70.20%   70.17%   -0.03%     
===========================================
  Files          803      803              
  Lines        30197    30191       -6     
  Branches      5060     5058       -2     
===========================================
- Hits         21199    21186      -13     
- Misses        7593     7605      +12     
+ Partials      1405     1400       -5     
Files with missing lines Coverage Δ
...main/java/com/datadog/legacy/trace/api/Config.java 66.32% <ø> (-0.35%) ⬇️

... and 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@0xnm
0xnm merged commit 2a90887 into develop Mar 24, 2025
@0xnm
0xnm deleted the nogorodnikov/remove-tracer-config-values-initialization-from-env-and-file branch March 24, 2025 10:32
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.

5 participants