Integrating OTel with Next.js Project Using `@vercel/otel` for Enhanced Tracing
This might be a question for effect-beginners-🚀 but this seems to be the Otel focused channel.
I've got a Next.js project using
This re-uses the trace provider that
Now, I want to attach the spans that
I've got a Next.js project using
@vercel/otel to set up OTel (automatically instruments parts of Next.js, which is very useful). I'm creating a new layer for attaching to my effects as follows: This re-uses the trace provider that
@vercel/otel has created. That works. Now, I want to attach the spans that
@vercel/otel creates as a parent span to spans in Effect. I can't figure out how to do that though. Effect.withSpan expects a Tracer.ParentSpan tagged value for parent. I can get the active span with trace.getActiveSpan. How should I tag and pass the parent span into Effect.withSpan?