Skip to content

APM Disablement V2 #4498

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

Merged
merged 11 commits into from
Mar 27, 2025
Merged

APM Disablement V2 #4498

merged 11 commits into from
Mar 27, 2025

Conversation

vpellan
Copy link
Contributor

@vpellan vpellan commented Mar 14, 2025

e

What does this PR do?

This PR changes the experimental env var DD_EXPERIMENTAL_APPSEC_STANDALONE_ENABLED to DD_APM_TRACING_ENABLED and the propagated tag from _dd.p.appsec to _dd.p.ts (which stands from trace source and is a bitmask)

Motivation:

Standalone Security features (which depends on APM Disablement) have been announced
(https://docs.datadoghq.com/security/application_security/guide/standalone_application_security/)

Change log entry

Yes. Tracing: Add setting to disable APM tracing while keeping other products traces.

Additionally, dd-trace-rb will now properly initialize in some situations when only partial code of it is loaded.

Additional Notes:

Please do not merge before this system-tests PR is merged

How to test the change?

System tests/Unit tests in CI

@github-actions github-actions bot added core Involves Datadog core libraries appsec Application Security monitoring product tracing labels Mar 14, 2025
@vpellan vpellan self-assigned this Mar 14, 2025
@pr-commenter
Copy link

pr-commenter bot commented Mar 17, 2025

Benchmarks

Benchmark execution time: 2025-03-27 19:38:55

Comparing candidate commit 3e2d0d1 in PR branch vpellan/apm-disablement-v2 with baseline commit ef85993 in branch master.

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

@vpellan vpellan force-pushed the vpellan/apm-disablement-v2 branch from 4108893 to aad5858 Compare March 18, 2025 10:27
@vpellan vpellan marked this pull request as ready for review March 18, 2025 12:54
@vpellan vpellan requested review from a team as code owners March 18, 2025 12:54
@vpellan vpellan force-pushed the vpellan/fix-sca-standalone branch from 6dd3b95 to 149fbbb Compare March 19, 2025 10:03
@vpellan vpellan force-pushed the vpellan/apm-disablement-v2 branch from 413eb56 to 7d805e9 Compare March 19, 2025 10:10
@vpellan vpellan force-pushed the vpellan/fix-sca-standalone branch from 4544628 to fea594d Compare March 19, 2025 18:14
@vpellan vpellan force-pushed the vpellan/apm-disablement-v2 branch from 7d805e9 to 0fd3665 Compare March 19, 2025 18:15
Base automatically changed from vpellan/fix-sca-standalone to master March 26, 2025 10:53
@vpellan vpellan force-pushed the vpellan/apm-disablement-v2 branch from 0fd3665 to f057d9f Compare March 26, 2025 15:12
@codecov-commenter
Copy link

codecov-commenter commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.75%. Comparing base (ef85993) to head (3e2d0d1).
Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4498      +/-   ##
==========================================
- Coverage   97.77%   97.75%   -0.02%     
==========================================
  Files        1392     1392              
  Lines       84890    84924      +34     
  Branches     4277     4285       +8     
==========================================
+ Hits        82997    83019      +22     
- Misses       1893     1905      +12     

☔ 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 26, 2025

Datadog Report

Branch report: vpellan/apm-disablement-v2
Commit report: 3e2d0d1
Test service: dd-trace-rb

✅ 0 Failed, 20786 Passed, 1370 Skipped, 3m 10.37s Total Time

Copy link
Member

@Strech Strech left a comment

Choose a reason for hiding this comment

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

Great job 👏🏼

P.S I left one note about potential exception place

@vpellan vpellan requested a review from a team as a code owner March 27, 2025 13:13
@vpellan vpellan merged commit 7700190 into master Mar 27, 2025
442 checks passed
@vpellan vpellan deleted the vpellan/apm-disablement-v2 branch March 27, 2025 20:18
@github-actions github-actions bot added this to the 2.13.0 milestone Mar 27, 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
appsec Application Security monitoring product core Involves Datadog core libraries tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants