Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.tracelit.io/llms.txt

Use this file to discover all available pages before exploring further.

Tracelit bridges your existing logger to the OpenTelemetry log pipeline. Your current log setup keeps working exactly as before — Tracelit just adds a second destination and automatically injects trace_id and span_id from the active span context.

How log-trace correlation works

When a log is emitted inside an active span, the SDK reads the trace and span IDs from the current context and attaches them to the log record before export. In the Tracelit dashboard, every log entry links directly to its parent trace — no manual field mapping needed.

Per-SDK setup

Console bridge (automatic)

No setup required. Once Tracelit.start() is called, all console.* calls are forwarded automatically.
MethodSeverity
console.debug / console.logDEBUG
console.infoINFO
console.warnWARN
console.errorERROR
Original console output is preserved — nothing changes for your existing log pipeline.

Winston

import winston from "winston";
import { WinstonTransport } from "@tracelit/sdk";
import { logs } from "@opentelemetry/api-logs";

const logger = winston.createLogger({
  transports: [
    new winston.transports.Console(),
    new WinstonTransport(logs.getLoggerProvider()),
  ],
});

logger.info("Order created", { orderId: "ord_123" });

Pino

import pino from "pino";
import { createPinoDestination } from "@tracelit/sdk";
import { logs } from "@opentelemetry/api-logs";

const logger = pino(
  pino.multistream([
    { stream: process.stdout },
    { stream: createPinoDestination(logs.getLoggerProvider()) },
  ])
);

logger.info({ orderId: "ord_123" }, "Order created");

Querying logs in Tracelit

Logs are available in the Logs tab of your service. You can:
  • Filter by severity, service, environment, and time range
  • Full-text search across log bodies and structured fields
  • Click any log entry to jump directly to its linked trace
  • Tail logs in real time during deploys or incidents

Learn more

Distributed tracing

Every log is linked to a trace. See how traces are captured.

Incidents

Tracelit clusters logs and surfaces patterns as incidents automatically.