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

Skip to content

Conversation

p-datadog
Copy link
Member

@p-datadog p-datadog commented Apr 3, 2025

…versions

What does this PR do?
Defaults logger arguments added in 2.13.0 release to Datadog.logger in lib/datadog/core.

It also changes positional logger arguments to keyword ones where those arguments were added in 2.13.0, for ease of defaulting / future compatibility.

Motivation:
datadog-ci-rb used the Core classes and its existing versions are not working with dd-trace-rb 2.13.0

Change log entry
Yes: default logger arguments added in dd-trace-rb 2.13.0

Additional Notes:
These defaults should not be used by dd-trace-rb itself because the tracer should always give the logger argument explicitly in all of these methods. The defaults are added for compatibility with third-party libraries or customer applications that use dd-trace-rb Core classes directly.

How to test the change?
Not tested in dd-trace-rb - should be tested manually in datadog-ci-rb

@p-datadog p-datadog requested a review from a team as a code owner April 3, 2025 13:48
@github-actions github-actions bot added the core Involves Datadog core libraries label Apr 3, 2025
@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.74%. Comparing base (0030ed4) to head (acfa034).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4558      +/-   ##
==========================================
- Coverage   97.76%   97.74%   -0.03%     
==========================================
  Files        1404     1404              
  Lines       86094    86096       +2     
  Branches     4351     4351              
==========================================
- Hits        84171    84153      -18     
- Misses       1923     1943      +20     

☔ 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 Apr 3, 2025

Datadog Report

Branch report: default-logger
Commit report: acfa034
Test service: dd-trace-rb

✅ 0 Failed, 20815 Passed, 1371 Skipped, 3m 41.13s Total Time

@p-datadog p-datadog requested a review from a team as a code owner April 3, 2025 14:07
@pr-commenter
Copy link

pr-commenter bot commented Apr 3, 2025

Benchmarks

Benchmark execution time: 2025-04-03 16:31:06

Comparing candidate commit acfa034 in PR branch default-logger with baseline commit 0030ed4 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 added this to the 2.14.0 milestone Apr 3, 2025
@p-datadog p-datadog merged commit ffcf80f into master Apr 4, 2025
441 checks passed
@p-datadog p-datadog deleted the default-logger branch April 4, 2025 08:41
@p-datadog p-datadog mentioned this pull request Apr 4, 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 tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants