Skip to content

feat(k8s): enable telemetry for roadmap-service and k8s services #1197

Closed

Description

@dan-petty

Problem & Context

The in-cluster roadmap-service and cluster workloads in the devops namespace currently have telemetry disabled in devops-cli-config ConfigMap (telemetry.enabled: false). Furthermore, k8s/devops/networkpolicy.yaml (devops-default-perimeter) restricts egress to DNS, LLM gateway, and public HTTPS, dropping all outbound traffic to the in-cluster OpenTelemetry Collector in namespace otel.

Proposed Solution

  1. In k8s/devops/configmap.yaml, enable telemetry and configure the in-cluster endpoint http://otel-collector-opentelemetry-collector.otel.svc.cluster.local:4318.
  2. In k8s/devops/networkpolicy.yaml, add an egress rule permitting TCP ports 4318 (HTTP) and 4317 (gRPC) to namespace otel.
  3. In k8s/devops/roadmap-service/deployment.yaml, set environment variable OTEL_SERVICE_NAME: roadmap-service.
  4. In src/devops_cli/server/service.py, add OpenTelemetry request tracing middleware to create_service_app (suppressing probe spam for /healthz, /readyz, and /metrics) and trace batch job executions in RepoWorker._execute_batch.
  5. Update tests in tests/test_k8s_devops_runtime.py and tests/test_k8s_roadmap_service.py to validate the new telemetry settings and four perimeter egress rules.

Activity

  1. added this to the v0.2.27 milestone on Oct 5, 2026
  2. added
    type/feature
    scope/k8s
    scope/telemetry
    priority/p1-high
    on Oct 5, 2026
  3. removed this from the v0.2.27 milestone on Oct 5, 2026
  4. dan-petty-bot commented on Oct 5, 2026

    @dan-petty-bot
    Collaborator

    Moved to the backlog: after v0.2.27 started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)

  5. added this to the v0.2.27 milestone on Oct 5, 2026
  6. removed this from the v0.2.27 milestone on Oct 5, 2026
  7. dan-petty-bot commented on Oct 5, 2026

    @dan-petty-bot
    Collaborator

    Moved to the backlog: after v0.2.27 started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)

  8. dan-petty-bot commented on Oct 5, 2026

    @dan-petty-bot
    Collaborator

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Priority: P2-Medium. This change enhances observability and is important for monitoring service health but does not address an immediate issue or bug.
    • Value: High. Enabling telemetry improves the ability to monitor and debug services, which is valuable for operational reliability.
    • Effort: Medium. The changes involve configuration updates, network policy modifications, code integration of tracing middleware, and test updates.
  9. dan-petty-bot commented on Oct 5, 2026

    @dan-petty-bot
    Collaborator

    What changed

    #1198, merged into release/v0.2.27 as 6e9ba6d.

    Resolves #1197

    11 file(s) changed.

    How it was verified

    Check runs at e4ed2b7:

    • Prune PR DevContainer Images: pass
    • CodeQL: pass
    • Static Analysis: pass
    • Analyze (actions): pass
    • Analyze (python): pass
    • Tests & Coverage: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1197-enable-k8s-telemetry.md:

    • k8s/devops/configmap.yaml enables telemetry targeting the in-cluster OpenTelemetry collector at http://otel-collector-opentelemetry-collector.otel.svc.cluster.local:4318.
    • k8s/devops/networkpolicy.yaml permits egress on TCP 4318 and 4317 to namespace otel.
    • k8s/devops/roadmap-service/deployment.yaml sets OTEL_SERVICE_NAME: roadmap-service.
    • src/devops_cli/server/service.py instruments HTTP requests and batch executions with OpenTelemetry spans and headers while bypassing /healthz, /readyz, /metrics.
    • k8s/README.md documents OTel collector egress in k8s/devops/.
    • Unit and contract tests pass with 100% verification across all modified files.
    • Changelog fragment changelog.d/1197.md is present.
    • uv run devops ci passes with 100% green status across all quality gates.
    • Pending a person: Live cluster deployment verification with kubectl apply and span inspection in Jaeger UI.
  10. added this to the v0.2.27 milestone on Oct 5, 2026
  11. added a commit that references this issue on Oct 6, 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

    priority/p1-highscope/k8sscope/telemetrytype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions