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

Extract logging from Datadog::Tracer to Datadog::Logger #880

Merged
merged 1 commit into from
Dec 10, 2019

Conversation

delner
Copy link
Contributor

@delner delner commented Dec 10, 2019

The logging functions in the Tracer class are global-level and totally independent of the other functions within the tracer. Given this, and tracer doesn't need to be responsible for logging, let's extract logging from Tracer to our existing Datadog::Logger.

Major benefit of doing so is that there are many components that depend on logging functions, but do not need the Tracer itself. Often times doing require 'ddtrace/tracer to get these functions results in a circular reference. Extracting this dependency prevents this kind of error from happening.

@delner delner added core Involves Datadog core libraries dev/refactor Involves refactoring existing components labels Dec 10, 2019
@delner delner requested review from marcotc and a team December 10, 2019 05:09
@delner delner self-assigned this Dec 10, 2019
@delner delner added this to In review in Active work Dec 10, 2019
@delner delner merged commit 97e8e0d into master Dec 10, 2019
Active work automation moved this from In review to Merged & awaiting release Dec 10, 2019
@delner delner deleted the refactor/extract_log_to_logger branch December 10, 2019 17:56
@marcotc marcotc added this to the 0.31.0 milestone Jan 7, 2020
@delner delner moved this from Merged & awaiting release to Released in Active work Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries dev/refactor Involves refactoring existing components
Projects
Active work
  
Released
Development

Successfully merging this pull request may close these issues.

None yet

3 participants