@@ -38,8 +38,11 @@ def onBefore(self, parentId, *args, **kwargs):
3838 pinpoint .add_trace_header (
3939 Defines .PP_APP_NAME , pinpoint .app_name (), traceId )
4040 pinpoint .add_context (Defines .PP_APP_NAME , pinpoint .app_name (), traceId )
41+
4142 pinpoint .add_trace_header (
4243 Defines .PP_APP_ID , pinpoint .app_id (), traceId )
44+ pinpoint .add_context (Defines .PP_APP_ID , pinpoint .app_id (), traceId )
45+
4346 ###############################################################
4447 pinpoint .add_trace_header (
4548 Defines .PP_INTERCEPTOR_NAME , 'BaseFlaskrequest' , traceId )
@@ -125,8 +128,8 @@ def onBefore(self, parentId, *args, **kwargs):
125128 pinpoint .add_context (
126129 Defines .PP_HEADER_PINPOINT_SAMPLED , "s0" , traceId )
127130
128- pinpoint .add_trace_header (Defines .PP_TRANSCATION_ID , self .tid , traceId )
129- pinpoint .add_context (Defines .PP_TRANSCATION_ID , self .tid , traceId )
131+ pinpoint .add_trace_header (Defines .PP_TRANSACTION_ID , self .tid , traceId )
132+ pinpoint .add_context (Defines .PP_TRANSACTION_ID , self .tid , traceId )
130133 pinpoint .add_trace_header (Defines .PP_SPAN_ID , self .sid , traceId )
131134 pinpoint .add_context (Defines .PP_SPAN_ID , self .sid , traceId )
132135 pinpoint .add_trace_header_v2 (
@@ -138,6 +141,6 @@ def onEnd(self, traceId, ret):
138141 super ().onEnd (traceId , ret )
139142 return ret
140143
141- def onException (self , e ):
142- pinpoint .mark_as_error (str (e ), "" , 0 )
144+ def onException (self , traceId , e ):
145+ pinpoint .mark_as_error (str (e ), "" , 0 , traceId )
143146 raise e
0 commit comments