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

Fix deprecation warnings when Rack Env is re-used #508

Merged
merged 2 commits into from
Aug 14, 2018

Conversation

delner
Copy link
Contributor

@delner delner commented Aug 10, 2018

There is a deprecation warning for the Rack integration when the Rack Env is accessed using the symbol name that was deprecated. This warning is triggered on a edge case where the same Env object is passed through the middleware multiple times; presumably because a web server is re-using the object instead of allocating new memory. This most readily manifests when using Unicorn.

This pull request adds a block around Datadog's use of the deprecated symbol (which exists for backwards compatibility) so that it doesn't raise this error if the object is re-used.

@delner delner added bug Involves a bug integrations Involves tracing integrations do-not-merge/WIP Not ready for merge labels Aug 10, 2018
@delner delner self-assigned this Aug 10, 2018
@delner
Copy link
Contributor Author

delner commented Aug 10, 2018

Still need to fix up Rubocop and add tests.

@delner delner force-pushed the bugfix/unicorn_triggers_rack_deprecation_warnings branch from 529f754 to 13d8c5c Compare August 13, 2018 16:12
@delner delner removed the do-not-merge/WIP Not ready for merge label Aug 13, 2018
pawelchcki
pawelchcki previously approved these changes Aug 14, 2018
Copy link
Contributor

@pawelchcki pawelchcki left a comment

Choose a reason for hiding this comment

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

👍

@delner delner force-pushed the bugfix/unicorn_triggers_rack_deprecation_warnings branch from 32f7c79 to f51ab0f Compare August 14, 2018 14:38
@delner delner changed the base branch from master to 0.14-dev August 14, 2018 14:38
@delner delner added this to the 0.14.0 milestone Aug 14, 2018
@delner delner merged commit cbcac00 into 0.14-dev Aug 14, 2018
@delner delner deleted the bugfix/unicorn_triggers_rack_deprecation_warnings branch August 14, 2018 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug integrations Involves tracing integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants