File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ if (RUN_INTEGRATION_TESTS) {
251251 resource : staticResource ,
252252 traceExporter,
253253 } ) ;
254- await otel . start ( ) ;
254+ otel . start ( ) ;
255255
256256 const sinks : InjectedSinks < OpenTelemetrySinks > = {
257257 exporter : makeWorkflowExporter ( traceExporter , staticResource ) ,
@@ -379,6 +379,19 @@ if (RUN_INTEGRATION_TESTS) {
379379 ) ;
380380 t . true ( activityStartedSignalSpan !== undefined ) ;
381381
382+ const timerSpan = spans . find (
383+ ( { name, parentSpanId } ) =>
384+ name === SpanName . WORKFLOW_TIMER && parentSpanId === parentExecuteSpan ?. spanContext ( ) . spanId
385+ ) ;
386+ t . true ( timerSpan !== undefined ) ;
387+
388+ const querySpan = spans . find (
389+ ( { name, parentSpanId } ) =>
390+ name === `${ SpanName . WORKFLOW_QUERY } ${ SPAN_DELIMITER } step` &&
391+ parentSpanId === secondActivityExecuteSpan ?. spanContext ( ) . spanId
392+ ) ;
393+ t . true ( querySpan !== undefined ) ;
394+
382395 t . deepEqual ( new Set ( spans . map ( ( span ) => span . spanContext ( ) . traceId ) ) . size , 1 ) ;
383396 } finally {
384397 // Cleanup the runtime so that it doesn't interfere with other tests
You can’t perform that action at this time.
0 commit comments