Skip to content

Commit

Permalink
Merge pull request #3020 from DataDog/refactor/extract_environment_lo…
Browse files Browse the repository at this point in the history
…gger_3

Refactor EnvironmentLogger
  • Loading branch information
delner authored Aug 15, 2023
2 parents 50a2035 + 4632878 commit 02c1e09
Show file tree
Hide file tree
Showing 18 changed files with 864 additions and 475 deletions.
2 changes: 2 additions & 0 deletions Steepfile
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ target :ddtrace do
ignore 'lib/datadog/profiling/collectors/cpu_and_wall_time_worker.rb'
ignore 'lib/datadog/profiling/collectors/old_stack.rb'
ignore 'lib/datadog/profiling/collectors/stack.rb'
ignore 'lib/datadog/profiling/diagnostics/environment_logger.rb'
ignore 'lib/datadog/profiling/encoding/profile.rb'
ignore 'lib/datadog/profiling/event.rb'
ignore 'lib/datadog/profiling/events/stack.rb'
Expand Down Expand Up @@ -554,6 +555,7 @@ target :ddtrace do
ignore 'lib/datadog/tracing/contrib/utils/quantization/hash.rb'
ignore 'lib/datadog/tracing/contrib/utils/quantization/http.rb'
ignore 'lib/datadog/tracing/correlation.rb'
ignore 'lib/datadog/tracing/diagnostics/environment_logger.rb'
ignore 'lib/datadog/tracing/diagnostics/ext.rb'
ignore 'lib/datadog/tracing/diagnostics/health.rb'
ignore 'lib/datadog/tracing/distributed/b3_multi.rb'
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/core/configuration/components.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def startup!(settings)
else
@logger.debug('Profiling is disabled')
end

Core::Diagnostics::EnvironmentLogger.collect_and_log!
end

# Shuts down all the components in use.
Expand Down
Loading

0 comments on commit 02c1e09

Please sign in to comment.