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

Deprecate GRPC global pin in favor of configuration API #702

Merged
merged 2 commits into from
Feb 28, 2019

Conversation

delner
Copy link
Contributor

@delner delner commented Feb 27, 2019

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 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.

None yet

2 participants