Skip to content

Deprecate GRPC global pin in favor of configuration API#702

Merged
delner merged 2 commits into
0.20-devfrom
refactor/grpc_replace_pin_with_config
Feb 28, 2019
Merged

Deprecate GRPC global pin in favor of configuration API#702
delner merged 2 commits into
0.20-devfrom
refactor/grpc_replace_pin_with_config

Conversation

@delner

@delner delner commented Feb 27, 2019

Copy link
Copy Markdown
Contributor

GRPC uses Datadog::Pin to drive configuration, for global settings and individual interceptors.

This pull requests changes the integration to use the configuration API instead of the global pin, and deprecates the use of GRPC.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.

It will still continue to use Datadog::Pin objects when trace settings are configured for an individual interceptor, so this part of the API will remain the same.

Changes here should be backwards compatible; any users using the global pin directly should receive a warning to upgrade while still preserving existing functionality. Users who use the pin attached to interceptors should not see a change in behavior there.

@delner delner added integrations Involves tracing integrations dev/refactor Involves refactoring existing components labels Feb 27, 2019
@delner delner added this to the 0.20.0 milestone Feb 27, 2019
@delner delner self-assigned this Feb 27, 2019
@delner
delner requested a review from brettlangdon February 27, 2019 20:47
@delner
delner force-pushed the refactor/grpc_replace_pin_with_config branch from 24b36e7 to fc806dd Compare February 27, 2019 20:52
@delner
delner merged commit 353714e into 0.20-dev Feb 28, 2019
@delner
delner deleted the refactor/grpc_replace_pin_with_config branch February 28, 2019 14:47
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