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.

Upvoters
Status

In Review

Board

πŸ’‘ Feature Request

Date

12 months ago

Author

mattaitken

Subscribe to post

Get notified by email when there are changes.