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

Tornado Tracer configuration doesn't have access to settings object for Trace Filtering #499

Closed
kave opened this issue Jun 25, 2018 · 2 comments

Comments

@kave
Copy link
Contributor

kave commented Jun 25, 2018

No description provided.

@palazzem
Copy link

Hello @kave and thanks for the feedback! In the current implementation, you can still use the Tracer configuration to access the Trace Filtering. It means having:

# we assume Tornado is patched as described in our docs
import tornado.web
from ddtrace import tracer

settings = {
    'datadog_trace': {
        'default_service': 'my-tornado-app',
        'tags': {'env': 'production'},
        'distributed_tracing': True,
    },
}

app = tornado.web.Application([
    (r'/', MainHandler),
], **settings)

tracer.configure(settings={
    'FILTERS': [
        FilterRequestsOnUrl(r'http://test\.example\.com'),
    ],
})

Does it work for you, or you would like to put everything in the Tornado settings? It's something we should do (for consistency), but it's just to get the sense of priority. Thanks a lot!

@palazzem
Copy link

@kave I've updated your PR #498 . Let me know if the problem is addressed that way! thank you!

@palazzem palazzem added this to the 0.12.2 milestone Jun 29, 2018
@palazzem palazzem modified the milestones: 0.12.2, 0.13.0 Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants