feat: Add tracing to ASGI (#502) · gitcommit90/sentry-python@dd05c57 · GitHub
Skip to content

Commit dd05c57

Browse files
authored
feat: Add tracing to ASGI (getsentry#502)
* feat: Add tracing to ASGI * fix: Formatting
1 parent 0b44394 commit dd05c57

3 files changed

Lines changed: 15 additions & 11 deletions

File tree

sentry_sdk/integrations/asgi.py

Lines changed: 12 additions & 9 deletions

sentry_sdk/tracing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def from_traceparent(cls, traceparent):
191191
if traceparent.startswith("00-") and traceparent.endswith("-00"):
192192
traceparent = traceparent[3:-3]
193193

194-
match = _traceparent_header_format_re.match(traceparent)
194+
match = _traceparent_header_format_re.match(str(traceparent))
195195
if match is None:
196196
return None
197197

tests/integrations/asgi/test_asgi.py

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)