Skip to content
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

[SDTEST-756] add +ci-X.Y.Z to the tracer_version reported to internal telemetry if datadog-ci is present and CI mode is enabled #3881

Merged

Conversation

anmarchenko
Copy link
Member

@anmarchenko anmarchenko commented Sep 3, 2024

What does this PR do?
As discussed before, we will extend tracer_version reported for internal telemetry with datadog-ci gem version if tracing is running in CI mode.

The monkey patch should be removed in the next release: DataDog/datadog-ci-rb#228

Motivation:
We need a better solution to distinguish datadog-ci versions when examining telemetry metrics emitted from the datadog-ci gem.

Additional Notes:
The original idea with +ci-X.Y.Z doesn't work perfect - it gets replaced by _:
image

-ci-X.Y.Z works fine though:
image

How to test the change?
Tested using staging (see reported tracer versions above). I didn't add unit tests because it would require bringing datadog-ci in appraisals which would be an overkill.

@github-actions github-actions bot added the core Involves Datadog core libraries label Sep 3, 2024
@anmarchenko anmarchenko changed the title add ci-X.Y.Z to the tracer_version if datadog-ci is present and CI mode is enabled [SDTEST-756] add ci-X.Y.Z to the tracer_version reported to internal telemetry if datadog-ci is present and CI mode is enabled Sep 3, 2024
@anmarchenko anmarchenko changed the title [SDTEST-756] add ci-X.Y.Z to the tracer_version reported to internal telemetry if datadog-ci is present and CI mode is enabled [SDTEST-756] add +ci-X.Y.Z to the tracer_version reported to internal telemetry if datadog-ci is present and CI mode is enabled Sep 3, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.87%. Comparing base (27d462b) to head (72702ff).
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #3881    +/-   ##
========================================
  Coverage   97.87%   97.87%            
========================================
  Files        1277     1279     +2     
  Lines       76392    76521   +129     
  Branches     3744     3747     +3     
========================================
+ Hits        74766    74893   +127     
- Misses       1626     1628     +2     

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

@pr-commenter
Copy link

pr-commenter bot commented Sep 3, 2024

Benchmarks

Benchmark execution time: 2024-09-06 14:44:01

Comparing candidate commit 72702ff in PR branch anmarchenko/report_tracer_version_for_telemetry_with_ci with baseline commit e9dd206 in branch master.

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

scenario:profiler - estimated profiler gc per minute (sample 60000 times + serialize result)

  • 🟩 throughput [+0.426op/s; +0.442op/s] or [+11.523%; +11.954%]

scenario:profiler - profiler gc

  • 🟩 throughput [+56346.568op/s; +56981.397op/s] or [+17.700%; +17.899%]

@p-datadog
Copy link
Member

Does this PR not need any test coverage?

Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

Left a few notes!

lib/datadog/core/telemetry/request.rb Show resolved Hide resolved
lib/datadog/core/telemetry/request.rb Outdated Show resolved Hide resolved
lib/datadog/core/telemetry/request.rb Show resolved Hide resolved
Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@anmarchenko anmarchenko force-pushed the anmarchenko/report_tracer_version_for_telemetry_with_ci branch from eb1e504 to f44f8b1 Compare September 6, 2024 13:57
@anmarchenko anmarchenko merged commit 8f64818 into master Sep 9, 2024
191 checks passed
@anmarchenko anmarchenko deleted the anmarchenko/report_tracer_version_for_telemetry_with_ci branch September 9, 2024 06:08
@anmarchenko anmarchenko added this to the 2.4.0 milestone Sep 9, 2024
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