Skip to content

Commit

Permalink
remove telemetry logger from component initialization lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Jan 3, 2025
1 parent f29c5ef commit e990396
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/datadog/ci/configuration/components.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require "datadog/core/telemetry/ext"
require "datadog/core/telemetry/logging"

require_relative "../ext/settings"
require_relative "../git/tree_uploader"
Expand Down Expand Up @@ -63,7 +62,6 @@ def activate_ci!(settings)
"NOTE: if you didn't disable tracing intentionally, add `c.tracing.enabled = true` to " \
"your Datadog.configure block."
)
Core::Telemetry::Logger.error("Tracing is disabled => test optimization is disabled")
settings.ci.enabled = false
return
end
Expand Down Expand Up @@ -172,7 +170,6 @@ def build_test_visibility_api(settings)
"Agentless mode was enabled but DD_API_KEY is not set: CI visibility is disabled. " \
"Please make sure to set valid api key in DD_API_KEY environment variable"
end
Core::Telemetry::Logger.error("DD_API_KEY not set => test optimization is disabled")

# Tests are running without CI visibility enabled
settings.ci.enabled = false
Expand Down

0 comments on commit e990396

Please sign in to comment.