const tracer = opentelemetry.trace.getTracer('example-basic-tracer-node')
const span = tracer.startSpan('say-hello')
span.setAttribute('hello-to', 'world')
span.addEvent('invoking say-hello', { 'hello-to': 'world' })
await Effect.gen(function* () {
yield* Effect.sleep(1000)
}).pipe(Effect.withSpan('fetch-todo'), executePromiseEffect)
span.end()
const tracer = opentelemetry.trace.getTracer('example-basic-tracer-node')
const span = tracer.startSpan('say-hello')
span.setAttribute('hello-to', 'world')
span.addEvent('invoking say-hello', { 'hello-to': 'world' })
await Effect.gen(function* () {
yield* Effect.sleep(1000)
}).pipe(Effect.withSpan('fetch-todo'), executePromiseEffect)
span.end()