Effect CommunityEC
Effect Community11mo ago
2 replies
Sly

Best practices for integrating OpenTelemetry with Effect TypeScript library

Stupid question w.r.t. best practices, if I'm moving in an area where I know that there's already an otel instrumentation running:

Would I rather do something into the direction of:

    Effect.withParentSpan(
            EffectOpenTelemetryTracer.makeExternalSpan(
                    trace
                        .getActiveSpan()!
                        .spanContext(),
            ),
        ),


Or something into the direction of tracer ??= trace.getTracer('SomeService') and try to work with this and somehow pass it to Effect?
Was this page helpful?