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

Dont print DATADOG CONFIGURATION #3940

Open
jshah opened this issue Sep 23, 2024 · 1 comment
Open

Dont print DATADOG CONFIGURATION #3940

jshah opened this issue Sep 23, 2024 · 1 comment
Assignees

Comments

@jshah
Copy link

jshah commented Sep 23, 2024

Hi, is there a way to not print the DATADOG CONFIGURATION on agent startup?

Here is an example of the log that gets printed:

I, [2024-09-23T18:03:39.258492 #40673]  INFO -- ddtrace: [ddtrace] DATADOG CONFIGURATION - CORE - {"date":"2024-09-23T18:03:39Z","os_name":"x86_64-pc-linux-gnu","version":"1.23.3","lang":"ruby","lang_version":"3.1.6","env":null,"service":"rails","dd_version":null,"debug":false,"tags":null,"runtime_metrics_enabled":false,"vm":"ruby-3.1.6","health_metrics_enabled":false,"profiling_enabled":false}
@vickenty vickenty transferred this issue from DataDog/datadog-agent Sep 24, 2024
@ivoanjo ivoanjo self-assigned this Sep 24, 2024
@ivoanjo
Copy link
Member

ivoanjo commented Sep 24, 2024

Hey @jshah yes, there's a way! You can do it via environment variables:

$ DD_TRACE_STARTUP_LOGS=true bundle exec ruby -e "require 'datadog'; Datadog.configure {}"
I, [2024-09-24T10:42:29.681675 #76173]  INFO -- datadog: [datadog] DATADOG CONFIGURATION - CORE - {"date":"2024-09-24T09:42:29Z","os_name":"x86_64-pc-linux-gnu","version":"2.3.0","lang":"ruby","lang_version":"3.1.4","env":null,"service":"-e","dd_version":null,"debug":false,"tags":null,"runtime_metrics_enabled":false,"vm":"ruby-3.1.4","health_metrics_enabled":false,"profiling_enabled":false}

$ DD_TRACE_STARTUP_LOGS=false bundle exec ruby -e "require 'datadog'; Datadog.configure {}"
# (no output)

or via code:

$ bundle exec ruby -e "require 'datadog'; Datadog.configure { |c| c.diagnostics.startup_logs.enabled = false }"
# (no output)

Let me know if this works for you! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants