Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

zacharycmontoya
Copy link
Contributor

@zacharycmontoya zacharycmontoya commented Mar 8, 2025

What does this PR do?
Adds a new flag DD_TRACE_EXPERIMENTAL_RUNTIME_ID_ENABLED to enable runtime ID collection for runtime metrics. This flag is disabled by default.

Motivation:
We ultimately want to collect the runtime-id tag by default, so this will allow us to collect these tags on an opt-in basis and give us better data to evaluate its impact on metrics collection.

Change log entry
Since this adds a feature flag,

Additional Notes:
This avoids adding the name DD_TRACE_EXPERIMENTAL_RUNTIME_ID_ENABLED to a const because this flag may not be necessary if we determine we can enable this by default. If that's an issue, I can change that.

APMAPI-1225

How to test the change?
This PR contains unit tests to assert that the runtime-id tag is included in the set of default tags from the Datadog::Core::Runtime::Metrics instance. Since I'm new to the dd-trace-rb repo, I'm not sure what other tests you'd like to see. Feedback is welcome!

Copy link

github-actions bot commented Mar 8, 2025

👋 Hey @DataDog/ruby-guild, please fill "Change log entry" section in the pull request description.

If changes need to be present in CHANGELOG.md you can state it this way

**Change log entry**

Yes. A brief summary to be placed into the CHANGELOG.md

(possible answers Yes/Yep/Yeah)

Or you can opt out like that

**Change log entry**

None.

(possible answers No/Nope/None)

Visited at: 2025-03-19 00:57:45 UTC

@github-actions github-actions bot added the core Involves Datadog core libraries label Mar 8, 2025
@codecov-commenter
Copy link

codecov-commenter commented Mar 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.76%. Comparing base (535244c) to head (96f1c3c).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4473      +/-   ##
==========================================
- Coverage   97.76%   97.76%   -0.01%     
==========================================
  Files        1390     1390              
  Lines       84748    84773      +25     
  Branches     4281     4282       +1     
==========================================
+ Hits        82856    82875      +19     
- Misses       1892     1898       +6     

☔ 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.

@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Mar 8, 2025

Datadog Report

Branch report: zach.montoya/experimental-runtime-id
Commit report: 96f1c3c
Test service: dd-trace-rb

✅ 0 Failed, 20808 Passed, 1373 Skipped, 3m 17.33s Total Time

@pr-commenter
Copy link

pr-commenter bot commented Mar 8, 2025

Benchmarks

Benchmark execution time: 2025-03-21 19:36:52

Comparing candidate commit 1ba663c in PR branch zach.montoya/experimental-runtime-id with baseline commit f7b904d in branch master.

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

@zacharycmontoya zacharycmontoya force-pushed the zach.montoya/experimental-runtime-id branch 2 times, most recently from ee171e0 to 0485243 Compare March 18, 2025 21:55
@zacharycmontoya zacharycmontoya changed the title [APMAPI-1225] Add a new experimental flag DD_TRACE_EXPERIMENTAL_RUNTIME_ID_ENABLED flag Add a new experimental flag DD_TRACE_EXPERIMENTAL_RUNTIME_ID_ENABLED flag Mar 19, 2025
@zacharycmontoya zacharycmontoya marked this pull request as ready for review March 21, 2025 19:12
@zacharycmontoya zacharycmontoya requested review from a team as code owners March 21, 2025 19:12
…to enable runtime ID collection for runtime metrics. This flag is disabled by default.
@zacharycmontoya zacharycmontoya force-pushed the zach.montoya/experimental-runtime-id branch from 1ba663c to 96f1c3c Compare March 21, 2025 20:14
@marcotc marcotc merged commit 560d6ba into master Mar 25, 2025
462 checks passed
@marcotc marcotc deleted the zach.montoya/experimental-runtime-id branch March 25, 2025 21:41
@github-actions github-actions bot added this to the 2.13.0 milestone Mar 25, 2025
@vpellan vpellan mentioned this pull request Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Involves Datadog core libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants