#Typescript SDK custom spans only show done once complete

1 messages · Page 1 of 1 (latest)

cedar creek
#

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:

  1. before the unit test has completed
  2. after the unit test has completed
#

version of dagger used: 0.18.19

subtle relic
#

poking @swift breach @lucid basin in case you already have a hint about this. Otherwise, we can 👀

swift breach
#

Yeah that's because TypesScript does not support live span for custom one's, I thought there was an issue somewhere but I cannot find it. Feel free to open an issue about that and I'll pick it when I have some time 🙂

lucid basin