-
Notifications
You must be signed in to change notification settings - Fork 766
Fix to properly skip all tornado server telemetry when URL excluded #3680
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
base: main
Are you sure you want to change the base?
Fix to properly skip all tornado server telemetry when URL excluded #3680
Conversation
Thanks for this one as well! It looks like this PR includes the changes from #3679. Could we keep the changes separate? |
@tammy-baylis-swi I need the code changes from #3679 in order to have a place to store the |
Ah all right, and it is mentioned in the description. There's no one preferred way. I'd suggest adjusting the description of #3679 to make it clear that it's introducing a new handler state object. Then maybe #3679 should be the one merged first, and this one after. I'll take a look at the other one for now. |
@devmonkey22 I've merged the other PR, please fix conflicts in this |
Conflicts resolved and ready for another review. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @devmonkey22 !
Description
Updated the tornado instrumentation to keep track of if the current handler is executing an excluded URL. If so, it skips tracking metrics both for request/responses.
Includes changes from Fix tornado server (request) duration metric calculation #3679 due to needing same handler state object.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
TestTornadoMetricsInstrumentation.test_exclude_lists
test to verify metrics written don't include server metrics anymore when fetching an excluded URL.Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.