Skip to main content

Support OTEL log exporters (send logs to other places)

We support sending spans to other places (as well as the Trigger.dev dashboard).

import { defineConfig } from "@trigger.dev/sdk/v3"; import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-proto';

// Initialize OTLP trace exporter with the endpoint URL and headers 
const axiomExporter = new OTLPTraceExporter({ url: 'https://api.axiom.co/v1/traces', headers: { 'Authorization': Bearer ${process.env.AXIOM_API_TOKEN}, 'X-Axiom-Dataset': process.env.AXIOM_DATASET }, });

export default defineConfig({ //.. other stuff telemetry: 
  { exporters: [axiomExporter], }, 
});

It would be good if you could create a log exporter and logs would be sent.

Status: Completed1 comment

Comments1

  • Sam Finton

    •

    Feb 25, 2025

    We would like this as well! We’re moving over to vercel/otel in nextjs and would like to be able to have all of our logs etc for both nextjs and trigger show up in one place