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

[rack] Remove deprecation warning on :datadog_rack_request_span #672

Merged
merged 2 commits into from
Jan 17, 2019

Conversation

brettlangdon
Copy link
Member

We previously added in a deprecation warning when we moved away from :datadog_rack_request_span key in the Rack env.

However, even if a user isn't trying to access this key directly some third party Gems will loop over all keys in the Rack env causing this deprecation warning to be shown. If this happens on every request then we could very easily be spamming the user's logs, which is not ideal.

The solution here is to remove the deprecation warning for now.

@brettlangdon brettlangdon requested a review from delner January 16, 2019 22:09
Copy link
Contributor

@delner delner left a comment

Choose a reason for hiding this comment

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

One small comment, but otherwise looks good!

lib/ddtrace/contrib/rack/middlewares.rb Show resolved Hide resolved
@brettlangdon brettlangdon merged commit b6d7502 into master Jan 17, 2019
@delner delner deleted the brettlangdon/remove.rack.warning branch January 17, 2019 15:16
@delner delner added bug Involves a bug integrations Involves tracing integrations labels Jan 17, 2019
@delner delner added this to the 0.18.3 milestone Jan 17, 2019
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.

2 participants