Guide

Verification Required

LogDB OpenTelemetry Collector examples.

Tested OpenTelemetry Collector and curl examples for LogDB logs/traces ingest, retained-record query, tenant headers, and local development policy boundaries.

Current availability

Private Beta. Public beta is scheduled for .

Example Status

Collector And curl Examples

Live

These examples are tested through product runner, fixture, endpoint, and query tests.

Page Review

Verification Required

Product SME, docs QA, security, and operations reviewers still need to accept exact local policy and live collector wording.

Example Snapshot

Example status
Tested
Examples
4
Validation
Product tests
Evidence
LDB-EVID-013

Source Files

Example source bundle
WorkflowStatusValidationSource
Collector HTTP and gRPC smoke configurationtestedcargo test --bin logdb-collector-smokedocs/examples/logdb/otel-collector-examples/snippets/otelcol-logdb-smoke.yaml
Opt-in collector smoke runnertested runner; live smoke opt-incargo test --bin logdb-collector-smokedocs/examples/logdb/otel-collector-examples/snippets/run-collector-smoke.sh
curl OTLP JSON log ingesttested route behaviorOtlpHttpEndpointTestsdocs/examples/logdb/otel-collector-examples/snippets/curl-otlp-json-log.sh
curl OTLP JSON trace ingest and querytested route behaviorOtlpHttpEndpointTests and QueryApiEndpointTestsdocs/examples/logdb/otel-collector-examples/snippets/curl-otlp-json-trace-query.sh

Example Guardrails

Local Headers Required

Collector exporters and curl commands must include x-logdb-tenant: local and authorization: Bearer local-dev-token for the local development policy.

Live Collector Is Opt-In

The repository does not vendor or download otelcol. A live collector run needs an approved collector binary and a reviewer-run artifact.

No Broader Observability Claim

These examples cover logs, traces, local retained-record query, and tenant policy only; metrics, profiles, dashboards, SIEM replacement, and production claims stay out of scope.

Collector and curl Snippets

Local LogDB requests require both x-logdb-tenant and authorization. Missing tenant headers are rejected; use the OTLP and query reference for exact error details.

LogDB collector and curl examples

Switch between collector configuration, opt-in shell smoke, curl ingest, query, and local policy examples.

YAML

docs/examples/logdb/otel-collector-examples/snippets/otelcol-logdb-smoke.yaml

OpenTelemetry Collector receiver and exporter configuration for local LogDB HTTP and gRPC endpoints.

receivers:
  otlp/http_to_http:
    protocols:
      http:
        endpoint: ${env:LOGDB_COLLECTOR_HTTP_INPUT_ENDPOINT}
  otlp/http_to_grpc:
    protocols:
      http:
        endpoint: ${env:LOGDB_COLLECTOR_GRPC_INPUT_ENDPOINT}

exporters:
  otlphttp/logdb:
    endpoint: ${env:LOGDB_COLLECTOR_LOGDB_HTTP_ENDPOINT}
    headers:
      x-logdb-tenant: local
      authorization: Bearer local-dev-token
  otlp/logdb:
    endpoint: ${env:LOGDB_COLLECTOR_LOGDB_GRPC_ENDPOINT}
    tls:
      insecure: true
    headers:
      x-logdb-tenant: local
      authorization: Bearer local-dev-token

Coverage Map

Behavior, surface, and evidence mapping
BehaviorSurfaceEvidenceMaturity
Collector exports logs and traces over OTLP HTTP/protobufotlphttp exporter to /v1/logs and /v1/tracesLDB-EVID-013 and otelcol-logdb-smoke.yamlLive route behavior; smoke process opt-in
Collector exports logs and traces over OTLP/gRPCotlp exporter to optional gRPC listenerLDB-EVID-013 and logdb-collector-smoke.rsLive when LOGDB_OTLP_GRPC_BIND_ADDRESS is configured
Send OTLP JSON compatibility logsPOST /v1/otlp/logsLDB-EVID-002, LDB-EVID-007, and OtlpHttpEndpointTestsLive
Send OTLP JSON compatibility tracesPOST /v1/otlp/tracesLDB-EVID-002, LDB-EVID-007, and OtlpHttpEndpointTestsLive
Query retained trace recordsPOST /v1/queryLDB-EVID-004 and QueryApiEndpointTestsLive
Reject missing tenant headerTenant admission and query authorizationLDB-EVID-003 and QueryApiEndpointTestsVerification required for external wording

Expected Output

The live collector smoke emits a unique trace ID. The curl examples use safe synthetic payloads and record IDs.

Text

Expected Output

Safe output summary for collector smoke and curl compatibility examples.

collector smoke passed
trace_id: <unique 32 hex chars>
matched_records: 4
log_bodies: collector smoke grpc log, collector smoke http log
span_names: collector smoke grpc span, collector smoke http span

{
  "status": "accepted",
  "signal": "log",
  "accepted_records": 1,
  "record_ids": ["logdb_..."]
}

{
  "status": "accepted",
  "signal": "trace",
  "accepted_records": 1,
  "record_ids": ["logdb_..."]
}

{
  "status": "ok",
  "tenant_id": "local",
  "dataset": "checkout",
  "matched_records": 1,
  "results": [{ "record": { "signal": "trace" } }]
}

{
  "status": "rejected",
  "retryable": false,
  "error": {
    "kind": "missing_tenant",
    "message": "x-logdb-tenant header is required"
  }
}

Validation And Evidence

DOCS-060 validation evidence
CommandWhat it provesReviewer status
cargo test --manifest-path LogDB/Cargo.toml --bin logdb-collector-smokeCollector endpoint normalization, command environment, payload mutation, response parsing, and evidence evaluation.passed 6/6 on 2026-08-16
cargo test --manifest-path LogDB/Cargo.toml otlp_collectorCollector-shaped OTLP log and trace fixtures encode official export request values.passed 2/2 on 2026-08-16
dotnet test <LogDB automated tests solution> --filter OtlpHttpEndpointTests|QueryApiEndpointTestsOTLP JSON compatibility ingest, native OTLP HTTP/protobuf behavior, query by ID/trace ID, and missing-auth rejection.passed 10/10 on 2026-08-16

Route Maturity Notes

LogDB examples stay scoped to logs, traces, local retained-record query, and local tenant policy. Use the compatibility matrix before strengthening S3, gRPC, metrics, profiles, BYOC, replay, support, or production claims.

Safe Next Steps

  • Available: DOCS-024

    Run the local quickstart

    Use the curl first-success path before adapting collector configuration.

  • Available: DOCS-033

    Read OTLP and query reference

    Review route shapes, content types, tenant headers, query filters, errors, and limits.

  • Available: DOCS-039

    Compare OTLP and S3 scope

    Confirm live, partial, unsupported, preview, future, and verification-required boundaries before adding more example claims.

  • Available: DOCS-063

    Add example validation

    Use the manifest gate alongside product tests before changing status or evidence wording.