diff --git a/plugins/PY/pinpointPy/libs/_requests/NextSpanPlugin.py b/plugins/PY/pinpointPy/libs/_requests/NextSpanPlugin.py index a3e36747..ea2a4775 100644 --- a/plugins/PY/pinpointPy/libs/_requests/NextSpanPlugin.py +++ b/plugins/PY/pinpointPy/libs/_requests/NextSpanPlugin.py @@ -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(