When running a typescript modules which uses custom spans, the custom span does not appear in the trace viewer until it is done.
The following code is being used:
async unitTests() {
const tracer = trace.getTracer(MyModule.name)
await tracer.startActiveSpan('unitTests', async () => {
const unitTest = await this.dockerfileTarget('tester');
await unitTest.sync();
})
}
Pictures included:
- before the unit test has completed
- after the unit test has completed
