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

Only store #tracer on Pin when configured #1041

Merged
merged 1 commit into from
May 26, 2020
Merged

Conversation

delner
Copy link
Contributor

@delner delner commented May 13, 2020

After switching to an immutable component structure in #996, Datadog.tracer can change after Datadog.configure is run. Datadog::Pin#new caches Datadog.tracer on itself when created, which could be undesirable if the intent is to use the default tracer.

This pull request changes Datadog::Pin to delegate to Datadog.tracer when no tracer is configured instead of caching the value of Datadog.tracer on the pin.

@delner delner added bug Involves a bug core Involves Datadog core libraries labels May 13, 2020
@delner delner requested a review from marcotc May 13, 2020 14:50
@delner delner self-assigned this May 13, 2020
@delner delner marked this pull request as ready for review May 13, 2020 15:03
@delner delner requested a review from a team May 13, 2020 15:03
@delner delner added this to In review in Active work May 13, 2020
@delner delner merged commit 98b42cb into master May 26, 2020
Active work automation moved this from In review to Merged & awaiting release May 26, 2020
@delner delner deleted the fix/pin_use_current_tracer branch May 26, 2020 17:22
@marcotc marcotc added this to the 0.36.0 milestone May 27, 2020
@delner delner moved this from Merged & awaiting release to Released in Active work Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug core Involves Datadog core libraries
Projects
Active work
  
Released
Development

Successfully merging this pull request may close these issues.

None yet

2 participants