Effect CommunityEC
Effect Community3y ago
5 replies
Stephen Bluck

Debugging Trace Exporter Setup for New Relic

hi there, is there any way I can debug the trace exporter setup some how? I am trying to connect to new relic but I am not seeing my service show up in the dashboard and I am not sure if it's unable to connect. My tracing layer:
const traceExporter = new OTLPTraceExporter({
  url: `${process.env.OTEL_EXPORTER_OTLP_ENDPOINT}/v1/traces`,
  headers: {
    'api-key': `${process.env.NEW_RELIC_LICENSE_INGEST_KEY}`
  }
});

const LiveTracing = Layer.provide(
  Resource.layer({ serviceName: process.env.OTEL_SERVICE_NAME_NODE || 'local-gizmo-web' }),
  Layer.merge(
    NodeSdk.layer(() => NodeSdk.config({ traceExporter })),
    Tracer.layer
  )
);
Was this page helpful?