Skip to content

Deprecate Dalli pin in favor of configuration API#693

Merged
delner merged 2 commits into
0.20-devfrom
refactor/dalli_replace_pin_with_config
Feb 20, 2019
Merged

Deprecate Dalli pin in favor of configuration API#693
delner merged 2 commits into
0.20-devfrom
refactor/dalli_replace_pin_with_config

Conversation

@delner

@delner delner commented Feb 19, 2019

Copy link
Copy Markdown
Contributor

Depends on #692

Dalli still uses Datadog::Pin to drive configuration. Users are likely using Dalli.datadog_pin.service_name = 'my_service' to set things which is something we definitely do not want to do.

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 19, 2019
@delner delner self-assigned this Feb 19, 2019
@delner
delner requested a review from brettlangdon February 19, 2019 17:50
@delner
delner changed the base branch from master to 0.20-dev February 19, 2019 17:50
@delner
delner force-pushed the refactor/dalli_replace_pin_with_config branch from 35821ca to 89350ab Compare February 19, 2019 22:32
@delner delner added this to the 0.20.0 milestone Feb 19, 2019
@delner
delner force-pushed the refactor/dalli_replace_pin_with_config branch from 89350ab to ddc5da5 Compare February 19, 2019 22:34
@delner
delner merged commit c052d55 into 0.20-dev Feb 20, 2019
@delner
delner deleted the refactor/dalli_replace_pin_with_config branch February 20, 2019 02:51
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