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

add exclude list of urls for wsgi instrumentation #2498

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

axel584
Copy link

@axel584 axel584 commented May 4, 2024

Description

add exclude list of urls for wsgi instrumentation

Fixes # (issue)

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • test_basic_wsgi_call_with_excluded_urls

Does This PR Require a Core Repo Change?

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

Copy link

linux-foundation-easycla bot commented May 4, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

@@ -623,6 +626,8 @@ def __call__(self, environ, start_response):
environ: A WSGI environment.
start_response: The WSGI start_response callable.
"""
if environ.get("PATH_INFO") in self.excluded_urls:
Copy link
Contributor

@lzchen lzchen May 6, 2024

Choose a reason for hiding this comment

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

Please use utils similar to asgi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants