Skip to content

Commit

Permalink
Fix: Django instrumentation if request have query_string will not cor…
Browse files Browse the repository at this point in the history
…rect resolver we need use request.path to replace request.get_full_path()
  • Loading branch information
zzhutianyu authored and xingzhaozhu committed Oct 30, 2020
1 parent ffa3b39 commit fb9fd8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _get_span_name(request):
if getattr(request, "resolver_match"):
match = request.resolver_match
else:
match = resolve(request.get_full_path())
match = resolve(request.path)

if hasattr(match, "route"):
return match.route
Expand Down

0 comments on commit fb9fd8c

Please sign in to comment.