Skip to content

feat: OTEL-native observability exporter with Prometheus metrics #695

Closed

Description

@AmitoVrito

Overview

Build OpenTelemetry-native observability for production LLM pipelines with Prometheus metrics endpoint and Grafana dashboards.

Problem

Production LLM applications lack visibility into execution trees, token cost breakdowns, and latency distribution per provider. Current TokenTracer logs only to stdout/files.

Solution

  1. OTEL spans for RAG queries (retrieval, LLM, postprocess steps)
  2. OTEL spans for agent execution (tool calls, reasoning steps)
  3. Prometheus metrics exporter (cost_usd_total, tokens_total, latency_seconds histogram)
  4. Grafana dashboard templates (cost trends, latency percentiles, throughput)
  5. Helm chart for self-hosted Prometheus/Grafana stack
  6. Integration with existing CostTracker and TokenTracer
  7. Optional: synapsekit.cloud managed observability tier

Acceptance Criteria

  • OpenTelemetry SDK integration in observability module
  • Prometheus exporter with cost + latency + token metrics
  • Grafana dashboard JSON templates
  • Helm chart for self-hosted deployment
  • Integration tests with Prometheus client
  • Zero overhead when observability disabled
  • Tutorial: 'Export to Grafana in 5 minutes'
  • Support for tracing distributed agent workflows

Version

v1.8.0

Activity

  1. added
    enhancement
    observability
    v1.8
    on May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementobservabilityv1.8

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions