diff --git a/plugins/PY/pinpointPy/Fastapi/FastAPIRequestPlugin.py b/plugins/PY/pinpointPy/Fastapi/FastAPIRequestPlugin.py index d96c4b760..8559caee2 100644 --- a/plugins/PY/pinpointPy/Fastapi/FastAPIRequestPlugin.py +++ b/plugins/PY/pinpointPy/Fastapi/FastAPIRequestPlugin.py @@ -45,9 +45,9 @@ def onEnd(self, traceId, response: Response): # fix bug in in fastapi/docs ut = '/' if 'root_path' in self.request.scope: - ut += self.request.scope['root_path'] + ut = self.request.scope['root_path'] if 'route' in self.request.scope: - ut += self.request.scope['route'].path + ut = self.request.scope['route'].path pinpoint.add_trace_header(Defines.PP_URL_TEMPLATED, ut, traceId)