Skip to content

Commit

Permalink
get url using kwargs and args (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
FKgk authored Dec 31, 2024
1 parent 1180b5d commit 0710996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/PY/pinpointPy/libs/_requests/NextSpanPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def isSample(*args, **kwargs):
return False, parentId, args, kwargs
# pull out headers
if sampled:
url = args[1]
url = kwargs.get('url') or args[1]
target = urlparse(url).netloc
if pinpoint.get_context(Defines.PP_HEADER_PINPOINT_SAMPLED, parentId) == "s1":
Helper.generatePinpointHeader(
Expand Down

0 comments on commit 0710996

Please sign in to comment.