Skip to content

Commit 0710996

Browse files
authored
get url using kwargs and args (#712)
1 parent 1180b5d commit 0710996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/PY/pinpointPy/libs/_requests/NextSpanPlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def isSample(*args, **kwargs):
3434
return False, parentId, args, kwargs
3535
# pull out headers
3636
if sampled:
37-
url = args[1]
37+
url = kwargs.get('url') or args[1]
3838
target = urlparse(url).netloc
3939
if pinpoint.get_context(Defines.PP_HEADER_PINPOINT_SAMPLED, parentId) == "s1":
4040
Helper.generatePinpointHeader(

0 commit comments

Comments
 (0)