Skip to content

feat(telemetry): startup dependency ordering for the telemetry stack #409

Closed

Description

@dan-petty

Context & Rationale

The OpenTelemetry collector starts before Jaeger is accepting connections and logs a burst of connection refused against jaeger.otel.svc.cluster.local:4317 until it recovers. The warnings are harmless and self-resolving, which is the problem: they are indistinguishable from a real outage when read later, and they were the first thing found when reviewing these logs.

Scope & Deliverables

  • Context & Rationale*: The OpenTelemetry collector starts before Jaeger is accepting connections and logs a burst of connection refused against jaeger.otel.svc.cluster.local:4317 until it recovers. The warnings are harmless and self-resolving, which is the problem: they are indistinguishable from a real outage when read later, and they were the first thing found when reviewing these logs.
  • Deliverable*: Express the dependency rather than retrying into the log — a readiness gate on the collector, or an explicit backoff that reports once rather than per attempt.

Strategic Alignment

  • Milestone: v0.2.23 (Foundational Architectural Guardrails & Project Hygiene)
  • Roadmap Reference: docs/ROADMAP.md

Monitoring cleanup amendment (2026-10-03)

#1135 replaces Jaeger with Tempo (release tempo in otel). The startup ordering applies to the collector's otlp_grpc/tempo exporter in the same way. Related to #1128, not a child.

Proposed design

Problem statement

The OpenTelemetry collector starts before Jaeger is accepting connections, causing it to log a burst of 'connection refused' warnings against jaeger.otel.svc.cluster.local:4317 until it recovers. These warnings are harmless but indistinguishable from real outages when reviewed later, and they occur during startup ordering.

Acceptance criteria

  • Criterion 1: The OpenTelemetry collector waits for the Tempo exporter endpoint to be ready before starting to send traces.
    Verification: Verify that the collector's configuration includes a readiness probe or explicit backoff logic before attempting to connect to the Tempo exporter.
  • Criterion 2: The startup sequence ensures that the Tempo service is fully initialized and accepting connections before the collector attempts to export traces.
    Verification: Run a test deployment where the collector starts after Tempo and verify no 'connection refused' errors appear in logs during startup.

Key questions

  • What specific mechanism should be used to express the dependency between the OpenTelemetry collector and the Tempo service?: A readiness gate on the collector or an explicit backoff that reports once rather than per attempt should be implemented. (proposed)

Open questions

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added this to the v0.2.23 milestone on Sep 22, 2026
  2. added
    type/feature
    scope/telemetry
    priority/p2-medium
    on Sep 22, 2026
  3. modified the milestones: v0.2.23, v0.2.24, v0.2.25 on Sep 24, 2026
  4. dan-petty commented on Sep 30, 2026

    @dan-petty
    OwnerAuthor

    Moved from v0.2.25 to the backlog. v0.2.25 is capped at 12 items (#740), and only the next two planned releases keep a milestone (#739), so P2 items wait in the backlog until reprioritization pulls them in.

  5. added
    priority/p3-low
    type/infra
    and removed
    type/feature
    priority/p2-medium
    on Oct 2, 2026
  6. dan-petty commented on Oct 2, 2026

    @dan-petty
    OwnerAuthor

    Grooming (2026-10-02): Priority p2-medium → p3-low. The issue says the warnings are harmless and recover on their own. This is log hygiene with no outage or data loss, so it is polish.

    Checked against the code at the release/v0.2.25 tip.

  7. modified the milestones: v0.2.37, v0.2.38 on Oct 17, 2026
  8. added 2 commits that reference this issue on Oct 21, 2026
    2db5089
    68e968a
  9. dan-petty commented on Oct 21, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1788, merged into release/v0.2.38 as 68e968a.

    The OpenTelemetry collector now starts after the Tempo it exports traces to, in both deploy paths, so a fresh deploy no longer logs a burst of connection refused that reads like an outage.

    6 file(s) changed.

    How it was verified

    Check runs at 2db5089:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Rule Pack Tests: pass
    • Analyze (python): pass
    • Fail-to-Pass Check: pass
    • Changed-Test Independence: pass
    • Fail-to-Pass Self-Check: pass
    • Tests & Coverage: pass
    • Analyze (actions): pass
    • Static Analysis: pass
    • Service Image: skipping
    • Dependency Freshness: skipping
    • DevContainer Image: skipping

    Acceptance Criteria of docs/agent/tasks/task-409-collector-starts-after-tempo.md:

    No Acceptance Criteria section.

  10. added 2 commits that reference this issue on Oct 21, 2026
    1a8b26c
    f92399e
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/p3-lowscope/telemetrytype/infra

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions