VOL. IV · NO. 11 · TELEMETRY MONOGRAPH
OTLP INGEST 99.99%

Developer Reference

OTLP & Query Quickstart

Connect any OpenTelemetry Collector or application SDK in under three minutes. Zero proprietary binaries required.

Ingestion

OpenTelemetry Collector Exporter

Point any standard otelcol distribution at LumenTrace over HTTP/2 gRPC with Zstd wire compression.

otel-collector-config.yaml
exporters:
  otlp/lumentrace:
    endpoint: ingest.lumentrace.internal:4317
    compression: zstd
    headers:
      x-lt-org: "prod-core-eu"
      x-lt-key: "${env:LUMENTRACE_INGEST_KEY}"

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [otlp/lumentrace]
Querying

High-Cardinality Forensic Query

Filter directly on unbounded customer_id and build_sha fields with zero pre-declared index schemas.

checkout-regression.lql
spans
| where service.name == "checkout-ledger"
  and http.response.status_code >= 500
  and app.build_sha == "9f4c2a1"
| summarize
    affected_users = dcount(enduser.id),
    p99_ms = percentile(duration_ms, 99),
    sample_trace = any(trace_id)
  by db.system, k8s.node.name
| sort by affected_users desc
SDK

Zero-Sample Node.js Instrumentation

Attach high-cardinality business context attributes directly to active spans without triggering cardinality caps.

instrumentation.ts
import { trace } from "@opentelemetry/api";

export async function settleInvoice(invoiceId: string, tenantId: string) {
  const span = trace.getActiveSpan();
  span?.setAttributes({
    "billing.invoice_id": invoiceId,
    "tenant.id": tenantId,
    "ledger.mode": "double_entry_strict",
  });
  return await commitLedgerEntry(invoiceId);
}