Effect CommunityEC
Effect Community2y ago
35 replies
Jonathan Powers

Configuring APM with Datadog for Observability

Is anyone here using datadog for their observability that might be able to help me configure the APM? I can get logs formatted just fine and ingested by the datadog agent, but I can't seem to figure out traces. I can use the datadog dd-trace library to automatically instrument, say,
http
, but it doesn't see any of the spans that effect creates.

Here's my nodesdk setup:
  return NodeSdk.layer(() => ({
    spanProcessor: new BatchSpanProcessor(new OTLPTraceExporter()),
    metricReader: new PeriodicExportingMetricReader({
      exporter: new OTLPMetricExporter(),
    }),
    tracerConfig: {},
    resource,
  }));


And I've tried some various dd-trace setups, this latest one "works" in that datadog spans do make it to the agent, but it's not seeing the Effect ones.
import tracer from 'dd-trace';

tracer.init();

tracer.use('http');

const { TracerProvider } = tracer;
const provider = new TracerProvider();

provider.register();
Was this page helpful?