Skip to content

feat(core): OpenTelemetry metrics, Prometheus scrape, and HTTP RED #89

Closed

Description

@abhijeet-dhumal

Status

The tracing and probe foundations are implemented, but the metrics path described here is still outstanding.

Implemented

  • OpenTelemetry tracing for tool calls with Kubeflow and MCP attributes.
  • Unauthenticated HTTP health and readiness endpoints.
  • An optional OpenTelemetry dependency group in pyproject.toml.
  • Safe behavior when OpenTelemetry dependencies are not installed.

Remaining

  • Add OpenTelemetry metrics initialization with a Prometheus reader/exporter.
  • Add an unauthenticated GET /metrics endpoint on the HTTP edge.
  • Instrument tool call count and duration, including tool and success dimensions.
  • Export a readiness gauge aligned with /ready.
  • Add HTTP rate, error, and duration metrics.
  • Add rate-limit and circuit-breaker metrics.
  • Support OTLP metrics export when configured.
  • Install the OpenTelemetry group in the published image; the current Dockerfile does not install it.
  • Document Prometheus scraping, OTLP metrics, and NetworkPolicy guidance.
  • Add focused unit tests and a stable metric-name contract.
  • Preserve safe behavior when the optional metrics dependencies are unavailable.

Out of scope

  • W3C trace-context propagation into Kubeflow SDK child spans.
  • Langfuse or MLflow exporters.
  • Helm ServiceMonitor resources.
  • Multi-process metric aggregation.

This issue remains open until the remaining metrics implementation and documentation are merged.

Activity

  1. abhijeet-dhumal commented on Jul 18, 2026

    @abhijeet-dhumal
    MemberAuthor

    /area core
    /area engprod

  2. abhijeet-dhumal commented on Jul 18, 2026

    @abhijeet-dhumal
    MemberAuthor

    /assign

  3. zeel2104 commented on Jul 18, 2026

    @zeel2104

    Open for contribution?

  4. FAUST-BENCHOU commented on Jul 19, 2026

    @FAUST-BENCHOU
    Contributor

    /unassign

  5. abhijeet-dhumal commented on Oct 2, 2026

    @abhijeet-dhumal
    MemberAuthor

    /unassign

  6. abhijeet-dhumal commented on Oct 2, 2026

    @abhijeet-dhumal
    MemberAuthor

    The broad observability tracker has been split into focused contributor issues with clear scope, acceptance criteria, and official references. Closing this tracker to avoid duplicate work.

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

    area/coreCore MCP server frameworkarea/engprodCI/CD, Makefile, developer tooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions