Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion instana/instrumentation/sanic_inst.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def handle_request_with_instana(wrapped, instance, args, kwargs):
if agent.options.extra_http_headers is not None:
extract_custom_headers(scope, headers)
await wrapped(*args, **kwargs)
if hasattr(request, "uri_template"):
if hasattr(request, "uri_template") and request.uri_template:
scope.span.set_tag("http.path_tpl", request.uri_template)
if hasattr(request, "ctx"): # ctx attribute added in the latest v19 versions
request.ctx.iscope = scope
Expand Down