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

Backport "Reduce startup logs verbosity" to master #3468

Merged
merged 3 commits into from
Feb 21, 2024

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Feb 21, 2024

What does this PR do?

This PR backports #3448 "[NO-TICKET] Reduce startup logs verbosity" from the 2.0 branch to master.

Motivation:

This change slightly reduces the amount of logging ddtrace does (see original PR), as well as makes sure our 1.x and 2.x logging are aligned.

Additional Notes:

N/A

How to test the change?

You can use for instance

bundle exec ruby -e "require 'ddtrace'; 2.times { Datadog.configure { } }"

to see the difference.

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

This saves us a few characters in most timezones and as a bonus
the output is consistent regardless of local system configuration.
This field allows extra stuff to be added without having to
print separate lines and/or have a separate environment logger.
…rate log line

The profiling logger was very minimal, so by doing this change we
enable components to return values to be included in the core logger.
@ivoanjo ivoanjo requested review from a team as code owners February 21, 2024 09:09
@github-actions github-actions bot added core Involves Datadog core libraries profiling Involves Datadog profiling labels Feb 21, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8212e9f) 98.23% compared to head (5884099) 98.23%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3468      +/-   ##
==========================================
- Coverage   98.23%   98.23%   -0.01%     
==========================================
  Files        1277     1275       -2     
  Lines       75141    75084      -57     
  Branches     3544     3546       +2     
==========================================
- Hits        73817    73760      -57     
  Misses       1324     1324              

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

@ivoanjo ivoanjo merged commit e87c04b into master Feb 21, 2024
220 checks passed
@ivoanjo ivoanjo deleted the ivoanjo/backport-reduce-logger-verbosity branch February 21, 2024 13:20
@github-actions github-actions bot added this to the 2.0 milestone Feb 21, 2024
@ivoanjo ivoanjo modified the milestones: 2.0, 1.21.0 Mar 14, 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 profiling Involves Datadog profiling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants