1 parent b7e32c5 commit 54a4556Copy full SHA for 54a4556
2 files changed
sentry_sdk/integrations/wsgi.py
@@ -87,7 +87,7 @@ def __call__(self, environ, start_response):
87
scope.add_event_processor(_make_wsgi_event_processor(environ))
88
89
span = Span.continue_from_environ(environ)
90
- span.transaction = environ.get("PATH_INFO") or "unknown http request"
+ span.transaction = "generic WSGI request"
91
92
with hub.span(span):
93
try:
tests/integrations/wsgi/test_wsgi.py
@@ -45,6 +45,8 @@ def test_basic(sentry_init, crashing_app, capture_events):
45
46
event, = events
47
48
+ assert event["transaction"] == "generic WSGI request"
49
+
50
assert event["request"] == {
51
"env": {"SERVER_NAME": "localhost", "SERVER_PORT": "80"},
52
"headers": {"Content-Length": "0", "Content-Type": "", "Host": "localhost"},
0 commit comments