Skip to content

fix(telemetry): use the delta_to_cumulative name of the collector processor #5359

Closed

Description

@dan-petty

Problem Description

The OpenTelemetry collector (otel/opentelemetry-collector-contrib:0.163.2, chart opentelemetry-collector 0.178.3) logs a deprecation warning at start for the processor name that k8s/otel/values.yaml uses. The contrib project renamed the component type deltatocumulative to delta_to_cumulative and keeps the old name as an alias. When a later collector version removes the alias, the collector does not start, and all metrics, spans and logs of the OTLP path stop.

Reproduction Steps

  1. Render k8s/otel/values.yaml with helm template otel-collector opentelemetry-collector --version 0.178.3.
  2. Start the image otel/opentelemetry-collector-contrib:0.163.2 with a config that has the deltatocumulative processor.
  3. Read the start log.

Expected vs Actual Behavior

Expected: the collector starts with no deprecation warning, and a collector upgrade cannot break the metrics pipeline on a removed alias.

Actual: warn builders/builders.go:40 "deltatocumulative" alias is deprecated; use "delta_to_cumulative" instead.

Proposed solution

Rename the processor in k8s/otel/values.yaml (the processor key and the metrics pipeline) to delta_to_cumulative. Change the tests and documents that name the key (tests/telemetry/test_telemetry_instruments.py, tests/commands/k8s/, docs/TELEMETRY.md and its generator, k8s/README.md, the specs command-telemetry and monitoring-collectors). Prove the config with validate --config of the same image. The rename changes the collector ConfigMap, so the collector rolls out once at the merge, and each devops-cli series gets one counter reset.

Environment Diagnostics

Found while I reviewed #5338 (pull request #5358): a local container of the contrib image 0.163.2 ran the metrics pipeline of k8s/otel/values.yaml. The live collector has the same config.

Alternatives check of 2026-11-17: in-use.
The repository already uses this tool.
Tool: open-telemetry/opentelemetry-collector-contrib (https://github.com/open-telemetry/opentelemetry-collector-contrib), Apache-2.0, last activity 2026-11-17, maintained.

Proposed design

Problem statement

Rename the processor key and the metrics pipeline to delta_to_cumulative in k8s/otel/values.yaml. The collector logs a deprecation warning for the old deltatocumulative name. The old name is an alias, and a later collector release can remove it. That removal stops the OTLP metrics, spans and logs pipeline. Update the tests, documents and specs that name the old key. A person merges the pull request; the collector then rolls out once and each devops-cli series resets once.

Acceptance criteria

Requirement: Collector uses the new processor name

The collector configuration in k8s/otel/values.yaml SHALL use delta_to_cumulative as the processor key and in the metrics pipeline.

Scenario: Start log has no deprecated alias warning

  • WHEN the contributor starts otel/opentelemetry-collector-contrib:0.163.2 with the configuration rendered from k8s/otel/values.yaml
  • THEN the start log contains no "deltatocumulative" alias is deprecated warning and the collector starts.

Requirement: Rendered config validates with the new name

The rendered collector configuration MUST pass validate --config of otel/opentelemetry-collector-contrib:0.163.2.

Scenario: Validate command exits zero

  • WHEN the contributor renders the chart and runs validate --config of otel/opentelemetry-collector-contrib:0.163.2 on the rendered configuration
  • THEN the command exits 0 and reports no unknown processor or pipeline error.

Requirement: Kubernetes checks pass

The Kubernetes checks SHALL pass with the renamed collector values.

Scenario: Kubernetes check exits zero

  • WHEN the contributor runs uv run devops ci --check --only k8s
  • THEN the check exits 0 and reports no invalid manifest.

Requirement: Telemetry tests expect the new key

The telemetry and Kubernetes command tests SHALL expect the delta_to_cumulative key.

Scenario: Telemetry test files pass

  • WHEN the contributor runs uv run pytest tests/telemetry/test_telemetry_instruments.py tests/commands/k8s -q
  • THEN the test run exits 0 and reports no failure.

Requirement: Documents name the new processor

The telemetry document, its generator and k8s/README.md SHALL name delta_to_cumulative.

Scenario: Documentation check passes

  • WHEN the contributor runs uv run devops ci --check --only docs
  • THEN the check exits 0 and reports no generated document drift.

Requirement: Specs name the new processor

The command-telemetry and monitoring-collectors specs SHALL name delta_to_cumulative.

Scenario: OpenSpec validation passes

  • WHEN the contributor runs uv run openspec validate --all
  • THEN the command exits 0 and reports both specs as valid.

Existing Tool Considered

The alternatives check in the issue body records in-use for open-telemetry/opentelemetry-collector-contrib (Apache-2.0, maintained), because the repository already uses it. That check lists what the tool covers and lacks. The proposal does the repository work it lacks. It renames the processor key and metrics pipeline. It updates the tests and documents. It validates the rendered config with the same image.

Key questions

  • Which processor name should k8s/otel/values.yaml use?: Use delta_to_cumulative. The contrib project renamed deltatocumulative and keeps the old name only as a deprecated alias. (best practice) [sources: k8s/otel/values.yaml, tests/telemetry/test_telemetry_instruments.py]
    • Rejected: Keep deltatocumulative. The old name logs a deprecation warning and stops the pipeline when a later collector removes the alias.
    • Chosen: Use delta_to_cumulative. This is the current upstream name, and the pinned image accepts it.
  • Should the old processor key stay beside the new key?: No. Keep one processor key, delta_to_cumulative, and list it in the metrics pipeline. A second old key keeps the deprecation warning. It also adds an unused processor. (best practice) [sources: k8s/otel/values.yaml]
    • Rejected: Keep both keys. The old alias still warns, and the pipeline uses one processor.
    • Chosen: Rename the one key. This removes the warning and the future break.
  • Should the tests and documents change in the same pull request?: Yes. The issue requires the tests and documents to name the new key. A separate pull request leaves checks and docs inconsistent. (best practice) [sources: k8s/otel/values.yaml, tests/telemetry/test_telemetry_instruments.py, src/devops_cli/docs/generator.py, docs/TELEMETRY.md, k8s/README.md, openspec/specs/command-telemetry/spec.md, openspec/specs/monitoring-collectors/spec.md]
    • Chosen: Same pull request. This keeps the rename atomic and the checks pass.
    • Rejected: Follow-up pull request. The old name remains in tests and docs after the config changes.
  • How should the change prove the rendered collector configuration?: Render the chart, then run validate --config of otel/opentelemetry-collector-contrib:0.163.2 on the rendered configuration. Start the same image and confirm that the deprecation warning is gone. (best practice) [sources: k8s/otel/values.yaml]
    • Rejected: Only run unit tests. Unit tests do not validate the collector configuration.
    • Chosen: Run validate --config and a start log check. This proves the pinned image accepts the new name and emits no alias warning.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/telemetry
    status/new
    value/medium
    effort/low
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 13, 2026
  4. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: The searches returned the contrib distribution the issue runs (otel/opentelemetry-collector-contrib), and the repository facts confirm it is the open, maintained project that ships the delta_to_cumulative processor under the new name while keeping deltatocumulative as an alias. So the tool the issue already uses covers the need, and only the repository-side rename of the key, pipeline, tests and docs is left; no other tool or library is required.

    The repository already uses this tool.

    Tool: open-telemetry/opentelemetry-collector-contrib (https://github.com/open-telemetry/opentelemetry-collector-contrib)

    • License: Apache-2.0
    • Last activity: 2026-11-17
    • Maintained: yes

    Covers:

    • Ships the delta_to_cumulative processor that converts delta temporality to cumulative, which is the component the values.yaml config needs.
    • Is the distribution the project already runs (otel/opentelemetry-collector-contrib:0.163.2), so the new name needs no new dependency or version bump.
    • Still accepts the old deltatocumulative name as an alias today, so the current config keeps working until the rename lands.

    Lacks:

    • The rename of the processor key and of the metrics pipeline in k8s/otel/values.yaml is repository work, not something the tool does.
    • The updates to tests/telemetry/test_telemetry_instruments.py, tests/commands/k8s/, docs/TELEMETRY.md and its generator, k8s/README.md and the two specs are repository work.
    • It does not schedule the alias removal; the config must be renamed before a later collector version drops the alias.

    Tools considered:

    Searches run:

    • OpenTelemetry Collector Contrib delta_to_cumulative processor, results: 5
    • deltatocumulative processor renamed delta_to_cumulative collector deprecation, results: 5

    Sources:

    Checked on 2026-11-17. A person decides what this means for the item. The check changes no label and closes no issue.

  5. added
    status/ready
    and removed
    status/new
    on Nov 17, 2026
  6. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 666a03f (see proposed design in issue body).

  7. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 18, 2026
  8. removed
    status/in-review
    on Nov 18, 2026
  9. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-18 16:28 UTC

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

    effort/lowpriority/p2-mediumscope/telemetrysource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions