Skip to content

selfhost(deploy): OpenTelemetry SDK traces + spans #1207

Description

@JSONbored

Part of #982. Part of #998.

Wire the OpenTelemetry Node.js SDK into the self-host runtime so operators can ship traces to any OTLP backend (Jaeger, Tempo, Honeycomb, Datadog, etc.) without touching application code.

Scope:

  • @opentelemetry/sdk-node + @opentelemetry/auto-instrumentations-node added to package.json
  • SDK initialized in src/selfhost/server.ts only when OTEL_EXPORTER_OTLP_ENDPOINT is set (off by default → zero overhead when not configured)
  • Spans for HTTP handler dispatch, queue job claim/complete/fail, and AI provider call
  • OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_SERVICE_NAME, OTEL_TRACES_SAMPLER in .env.example
  • Optional Jaeger all-in-one compose service in the observability profile

Metadata

Metadata

Assignees

Labels

maintainer-onlyWork to be completed solely by jsonbored - yields no gittensor points.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions