Skip to content

DEBUG-3573 Send source code integration tags in telemetry and remote config#4653

Merged
p-datadog merged 17 commits into
masterfrom
di-git-sci
May 16, 2025
Merged

DEBUG-3573 Send source code integration tags in telemetry and remote config#4653
p-datadog merged 17 commits into
masterfrom
di-git-sci

Conversation

@p-datadog

@p-datadog p-datadog commented May 14, 2025

Copy link
Copy Markdown
Member

What does this PR do?
Sends source code integration (SCI) tags in telemetry app-started event and in each remote config request.

Motivation:
Dynamic instrumentation UI requires SCI information in both locations to render properly.

Change log entry
Yes: provide source code integration data to dynamic instrumentation UI

Additional Notes:

How to test the change?

Unit tests added in this PR + system test in DataDog/system-tests#3212

@github-actions github-actions Bot added the core Involves Datadog core libraries label May 14, 2025
@github-actions

github-actions Bot commented May 14, 2025

Copy link
Copy Markdown

Thank you for updating Change log entry section 👏

Visited at: 2025-05-16 05:36:00 UTC

@p-datadog

Copy link
Copy Markdown
Member Author

System tests PR: DataDog/system-tests#3212

@p-datadog p-datadog added this to the 2.16.0 milestone May 14, 2025
@codecov-commenter

codecov-commenter commented May 15, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.72%. Comparing base (b3bc3fc) to head (c1723c4).
Report is 527 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4653      +/-   ##
==========================================
- Coverage   97.73%   97.72%   -0.01%     
==========================================
  Files        1441     1442       +1     
  Lines       87195    87240      +45     
  Branches     4469     4475       +6     
==========================================
+ Hits        85218    85254      +36     
- Misses       1977     1986       +9     

☔ 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

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

Copy link
Copy Markdown
Contributor

Datadog Report

Branch report: di-git-sci
Commit report: c1723c4
Test service: dd-trace-rb

✅ 0 Failed, 21294 Passed, 1378 Skipped, 3m 59.75s Total Time

@pr-commenter

pr-commenter Bot commented May 15, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-05-16 15:25:39

Comparing candidate commit c1723c4 in PR branch di-git-sci with baseline commit b3bc3fc in branch master.

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

@p-datadog p-datadog changed the title DEBUG-3573 Send source code integration tags in remote config DEBUG-3573 Send source code integration tags in telemetry and remote config May 16, 2025
@p-datadog
p-datadog marked this pull request as ready for review May 16, 2025 05:55
@p-datadog
p-datadog requested a review from a team as a code owner May 16, 2025 05:55
Comment thread lib/datadog/core/environment/git.rb
Comment thread lib/datadog/core/environment/git.rb Outdated
Comment on lines +27 to +29
# Resets caches in this module. Meant for internal use in the
# test suite only.
def _reset

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.

I wouldn't add this method for testing purpose only. Can't we call those 2 methods directly in the test suite?

@Strech Strech May 16, 2025

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.

Maybe there is a way to stub it in the tests instead? I suspect it might be tricky, but I do agree that introducing methods purely for testing purposes is not good practice.

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 would prefer not to stub in this case because then the test ends up not meaningful in my opinion. I could move the reset method in the test suite though.

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.

In this case remove_instance_variable does not work for module_functions outside of the self scope so I am actually not sure how to get this code to live elsewhere.

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.

5 participants