8000 fix: Remove WSGI transaction logic (#452) · etherscan-io/sentry-python@54a4556 · GitHub
[go: up one dir, main page]

Skip to content

Commit 54a4556

Browse files
authored
fix: Remove WSGI transaction logic (getsentry#452)
1 parent b7e32c5 commit 54a4556

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sentry_sdk/integrations/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __call__(self, environ, start_response):
8787
scope.add_event_processor(_make_wsgi_event_processor(environ))
8888

8989
span = Span.continue_from_environ(environ)
90-
span.transaction = environ.get("PATH_INFO") or "unknown http request"
90+
span.transaction = "generic WSGI request"
9191

9292
with hub.span(span):
9393
try:

tests/integrations/wsgi/test_wsgi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def test_basic(sentry_init, crashing_app, capture_events):
4545

4646
event, = events
4747

48+
assert event["transaction"] == "generic WSGI request"
49+
4850
assert event["request"] == {
4951
"env": {"SERVER_NAME": "localhost", "SERVER_PORT": "80"},
5052
"headers": {"Content-Length": "0", "Content-Type": "", "Host": "localhost"},

0 commit comments

Comments
 (0)
0