Skip to content

[APMAPI-1116] Stable configuration#4592

Merged
vpellan merged 27 commits into
masterfrom
vpellan/stable-configuration
May 14, 2025
Merged

[APMAPI-1116] Stable configuration#4592
vpellan merged 27 commits into
masterfrom
vpellan/stable-configuration

Conversation

@vpellan

@vpellan vpellan commented Apr 17, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

Add stable config support.

Motivation:

Fleet Automation will inject a configuration file onto hosts that the APM SDKs must read, apply, and report telemetry about

Change log entry

None.

Additional Notes:

Needs to wait for libdatadog 17.1 release because of ddog_library_configurator_with_detect_process_info, so critical code is commented out.

How to test the change?

System-tests, following the instructions here

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Apr 17, 2025

Copy link
Copy Markdown
Contributor

Datadog Report

Branch report: vpellan/stable-configuration
Commit report: 8305bbc
Test service: dd-trace-rb

✅ 0 Failed, 23500 Passed, 1498 Skipped, 3m 57.47s Total Time

@ivoanjo ivoanjo left a comment

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.

Left a few notes :)

Comment thread ext/libdatadog_api/datadog_ruby_common.h Outdated
Comment thread ext/libdatadog_api/datadog_ruby_common.h Outdated
Comment thread ext/libdatadog_api/library_config.c Outdated
Comment thread ext/libdatadog_api/library_config.c Outdated
Comment thread ext/libdatadog_api/library_config.c Outdated
@vpellan
vpellan force-pushed the vpellan/stable-configuration branch from 8a1edbd to da8b0c1 Compare April 24, 2025 12:06
@github-actions github-actions Bot added the profiling Involves Datadog profiling label Apr 24, 2025
Comment thread ext/libdatadog_api/library_config.c Outdated
Comment thread ext/libdatadog_api/library_config.c Outdated
@vpellan
vpellan force-pushed the vpellan/stable-configuration branch from 2bdd7bd to f189316 Compare April 28, 2025 15:56
@github-actions github-actions Bot added the core Involves Datadog core libraries label Apr 28, 2025
@vpellan
vpellan force-pushed the vpellan/stable-configuration branch 2 times, most recently from f819739 to 44876eb Compare May 2, 2025 10:45
@vpellan
vpellan force-pushed the vpellan/stable-configuration branch from 44876eb to 6af044a Compare May 7, 2025 14:33
@github-actions github-actions Bot added the appsec Application Security monitoring product label May 7, 2025
@vpellan
vpellan force-pushed the vpellan/stable-configuration branch 3 times, most recently from 641cf63 to 22f2401 Compare May 12, 2025 07:34
@vpellan vpellan changed the title [APMAPI-1116] [WIP] Stable configuration [APMAPI-1116] Stable configuration May 12, 2025
@vpellan
vpellan marked this pull request as ready for review May 12, 2025 08:11
@vpellan
vpellan requested review from a team as code owners May 12, 2025 08:11
@codecov-commenter

codecov-commenter commented May 12, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 95.45455% with 3 lines in your changes missing coverage. Please review.

Project coverage is 97.77%. Comparing base (df9dba8) to head (8305bbc).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
lib/datadog/core/configuration/stable_config.rb 81.81% 2 Missing ⚠️
lib/datadog/core/configuration/option.rb 96.55% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4592   +/-   ##
=======================================
  Coverage   97.77%   97.77%           
=======================================
  Files        1419     1421    +2     
  Lines       86624    86676   +52     
  Branches     4397     4404    +7     
=======================================
+ Hits        84697    84750   +53     
+ Misses       1927     1926    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pr-commenter

pr-commenter Bot commented May 12, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-05-14 21:31:19

Comparing candidate commit 8305bbc in PR branch vpellan/stable-configuration with baseline commit df9dba8 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 31 metrics, 2 unstable metrics.

Comment thread lib/datadog/core/configuration/stable_config.rb Outdated
@vpellan
vpellan force-pushed the vpellan/stable-configuration branch 2 times, most recently from c3a75b9 to c6ed4a9 Compare May 12, 2025 14:31
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented May 12, 2025

Copy link
Copy Markdown
Contributor

Datadog Summary

❌ Code Quality    ✅ Code Security    ✅ Dependencies

Test Optimization Report

Branch report: vpellan/stable-configuration
Commit report: c6ed4a9
Test service: dd-trace-rb

✅ 0 Failed, 21260 Passed, 1373 Skipped, 3m 51.18s Total Time


Was this helpful? Give us feedback!

@vpellan
vpellan force-pushed the vpellan/stable-configuration branch from c6ed4a9 to e0bd658 Compare May 12, 2025 16:13
Comment thread lib/datadog/core/configuration.rb Outdated
Comment thread lib/datadog/core/configuration/stable_config.rb Outdated
Comment thread lib/datadog/core/configuration/stable_config.rb Outdated
vpellan added 25 commits May 14, 2025 21:31
…igVec to Datadog::Core::Configuration::StableConfigVec
- Make Configurator.get always return a hash
- Combine Configurator new and get
@vpellan
vpellan force-pushed the vpellan/stable-configuration branch 2 times, most recently from 6e20a26 to 8305bbc Compare May 14, 2025 21:07
@vpellan
vpellan merged commit 2a00553 into master May 14, 2025
@vpellan
vpellan deleted the vpellan/stable-configuration branch May 14, 2025 21:51
@github-actions github-actions Bot added this to the 2.16.0 milestone May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appsec Application Security monitoring product core Involves Datadog core libraries profiling Involves Datadog profiling tracing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants