@@ -141,12 +141,15 @@ const Step2 = ({ onFinish }: StepProps) => {
141
141
if ( proof && trie ) {
142
142
const sendExecutorServiceSpan = apmTransaction ?. startSpan (
143
143
'send-request-to-executor-service' ,
144
- 'app'
144
+ 'app' ,
145
+ { sync : true }
145
146
)
146
147
147
- const traceparent = `00-${
148
- ( sendExecutorServiceSpan as any ) . traceId
149
- } -${ ( sendExecutorServiceSpan as any ) . id } -01`
148
+ const traceparent = sendExecutorServiceSpan
149
+ ? `00-${ ( sendExecutorServiceSpan as any ) . traceId } -${
150
+ ( sendExecutorServiceSpan as any ) . id
151
+ } -01`
152
+ : ''
150
153
151
154
const iface = new ethers . utils . Interface ( ERC20MessagingJSON . abi )
152
155
let tokenSentLogIndex : number | undefined = undefined
@@ -185,12 +188,15 @@ const Step2 = ({ onFinish }: StepProps) => {
185
188
sendExecutorServiceSpan ?. end ( )
186
189
const observeExecutorJobSpan = apmTransaction ?. startSpan (
187
190
'wait-for-executor-service-job-execution' ,
188
- 'app'
191
+ 'app' ,
192
+ { sync : true }
189
193
)
190
194
191
- const traceparent = `00-${
192
- ( observeExecutorJobSpan as any ) . traceId
193
- } -${ ( observeExecutorJobSpan as any ) . id } -01`
195
+ const traceparent = observeExecutorJobSpan
196
+ ? `00-${ ( observeExecutorJobSpan as any ) . traceId } -${
197
+ ( observeExecutorJobSpan as any ) . id
198
+ } -01`
199
+ : ''
194
200
195
201
observeExecutorServiceJob ( job . id , { traceparent } ) . subscribe ( {
196
202
next : ( progress : number ) => {
0 commit comments