Effect CommunityEC
Effect Community2y ago
7 replies
GoldRyu

Sending Effect.log Traces to OTEL Collector with NodeSdk Configuration

Hello, how can I send my Effect.log traces to the OTEL collector?

I have already configured NodeSdk to send spans, and it is working. Now, I just need to send my Effect.log traces as well.

Here is my NodeSdk configuration:

  NodeSdk.layer(() => ({
    resource: { serviceName },
    spanProcessor: new BatchSpanProcessor(
      new OTLPTraceExporter({
        url: 'http://localhost:4318/v1/traces',
      })
    ),
  }))
Was this page helpful?