Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
OpenTelemetry NodeSDK for Tracelit — Express, Fastify, NestJS, and log libraries.
OTEL_SERVICE_NAME=my-service OTEL_RESOURCE_ATTRIBUTES=deployment.environment=production OTEL_EXPORTER_OTLP_ENDPOINT=https://ingest.tracelit.app OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer <WORKSPACE_INGEST_KEY>
npm install @opentelemetry/sdk-node @opentelemetry/api \ @opentelemetry/auto-instrumentations-node \ @opentelemetry/exporter-trace-otlp-proto \ @opentelemetry/exporter-logs-otlp-proto \ @opentelemetry/sdk-logs
tracelit-otel.cjs
NODE_OPTIONS="--require ./tracelit-otel.cjs" <your-start-command>
OTLPLogExporter
BatchLogRecordProcessor
npm install pino @opentelemetry/instrumentation-pino
NodeSDK
const { PinoInstrumentation } = require('@opentelemetry/instrumentation-pino'); instrumentations: [ getNodeAutoInstrumentations(), new PinoInstrumentation(), ],
logger.info({ count: 3 }, 'order listed'); logger.error({ err }, 'payment failed');
npm install winston @opentelemetry/instrumentation-winston
const { WinstonInstrumentation } = require('@opentelemetry/instrumentation-winston'); instrumentations: [ getNodeAutoInstrumentations(), new WinstonInstrumentation(), ],
logger.info('order listed', { count: 3 }); logger.error('payment failed', { err });
console.info('order listed'); console.error('payment failed');