Skip to content

Deprecate Grape pin in favor of configuration API#700

Merged
delner merged 3 commits into
0.20-devfrom
refactor/grape_replace_pin_with_config
Feb 26, 2019
Merged

Deprecate Grape pin in favor of configuration API#700
delner merged 3 commits into
0.20-devfrom
refactor/grape_replace_pin_with_config

Conversation

@delner

@delner delner commented Feb 26, 2019

Copy link
Copy Markdown
Contributor

Grape still uses Datadog::Pin to drive configuration.

This pull requests changes the integration to use the configuration API, and deprecates the use of #datadog_pin as a means to drive configuration, and now raises warnings when it is accessed this way. Instead, when the pin is accessed and configured, it will apply the appropriate configuration via the configuration API.

Changes here should be backwards compatible; any users using old means should receive a warning to upgrade while still preserving existing functionality.

@delner delner added integrations Involves tracing integrations dev/refactor Involves refactoring existing components labels Feb 26, 2019
@delner delner added this to the 0.20.0 milestone Feb 26, 2019
@delner delner self-assigned this Feb 26, 2019
@delner
delner requested a review from brettlangdon February 26, 2019 20:37
tracer: get_option(:tracer)
)
pin.onto(::Grape)
# TODO: When Grape pin is removed, set service info.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to set/send service info to the trace agent anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True; this exists for the sake of the tests though, which still check for the presence of service info. When we clean up service info from the tracer, we can remove this too.

@delner
delner merged commit d3940d8 into 0.20-dev Feb 26, 2019
@delner
delner deleted the refactor/grape_replace_pin_with_config branch February 26, 2019 22:28
This was referenced Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev/refactor Involves refactoring existing components integrations Involves tracing integrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants