Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lumiqtrace.com/llms.txt

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

LumiqTrace accepts OpenTelemetry trace data over the standard OTLP HTTP protocol at POST /v1/otel. This lets you send traces from any OpenTelemetry-instrumented application — including those using the official OpenTelemetry SDKs for Node.js, Python, Go, Java, and other languages.
If you are using the LumiqTrace SDK, use the native ingest endpoint instead (POST /v1/ingest). The OpenTelemetry endpoint is for applications already instrumented with OTel that want to route traces to LumiqTrace without migrating to the native SDK.

Endpoint

POST https://api.lumiqtrace.com/v1/otel
The endpoint accepts the full OTLP JSON and Protobuf formats. Authentication: x-api-key header (your project API key)

Configuring your OTel exporter

Set your OTLP exporter to target the LumiqTrace endpoint and include your API key as a header.
import { NodeSDK } from "@opentelemetry/sdk-node";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";

const exporter = new OTLPTraceExporter({
  url: "https://api.lumiqtrace.com/v1/otel",
  headers: {
    "x-api-key": process.env.LUMIQTRACE_API_KEY!,
  },
});

const sdk = new NodeSDK({ traceExporter: exporter });
sdk.start();

Using initOTel from the LumiqTrace SDK

If you are using the LumiqTrace TypeScript SDK, you can enable the OTel exporter alongside the native exporter in one call:
import { lumiqtrace } from "@lumiqtrace/sdk";

lumiqtrace.init({
  apiKey: process.env.LUMIQTRACE_API_KEY!,
  enableOTel: true,
  otelEndpoint: "https://api.lumiqtrace.com/v1/otel",
  otelServiceName: "my-llm-service",
});
With enableOTel: true, the SDK sends spans to both the native ingest endpoint and the OTel exporter simultaneously.

Supported signal types

SignalSupport
Traces (spans)Full support
MetricsNot currently accepted
LogsNot currently accepted

How OTel spans appear in LumiqTrace

OTel spans are mapped to the LumiqTrace event schema as follows:
OTel attributeLumiqTrace field
span.nameoperation
gen_ai.systemprovider
gen_ai.request.modelmodel
gen_ai.usage.prompt_tokensinput_tokens
gen_ai.usage.completion_tokensoutput_tokens
gen_ai.response.finish_reasonsfinish_reason
traceIdtrace_id
spanIdspan_id
parentSpanIdparent_span_id
Spans that do not include gen_ai.* attributes are still ingested and appear in the trace view as non-LLM spans.

Response

202 Accepted — Spans accepted for processing. 401 — Missing or invalid x-api-key. 429 — Monthly event quota exceeded.