Skip to content

✨ Upgrade pinned OpenTelemetry log packages from v0.16.0 to v0.19.0 #13040

Open

Description

@rgoltz

What are you trying to do?

Upgrade the four OpenTelemetry log packages that are currently pinned via replace directives in go.mod from v0.16.0 to v0.19.0:

go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc => v0.16.0
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp => v0.16.0
go.opentelemetry.io/otel/log                                => v0.16.0
go.opentelemetry.io/otel/sdk/log                            => v0.16.0

The require block already lists v0.17.0 for these packages (pulled in via dagger/otel-go), and the dagger/otel-go fork itself already uses v0.17.0 in its own go.mod. The replace directives in the main repo force them back to v0.16.0.

Why is this important to you?

  1. Downstream consumers are affected. Projects that depend on Dagger as a Go SDK (e.g., for build tooling) need to maintain their own matching replace directives to stay compatible. When Dagger pins to an older version, downstream projects are effectively locked to that version too, making it difficult to adopt improvements and fixes from newer OTel log releases.

  2. Vulnerability scanners flag the pinned versions. The otlploghttp package received a fix in v0.19.0 that limits HTTP response body reads to 4 MiB (open-telemetry/opentelemetry-go#8108, CVE-2026-39882, CVSS 5.3 Moderate). Without this fix, a malicious or compromised OTLP collector endpoint could send an unbounded response body, causing excessive memory allocation in the exporter. While the practical risk in typical CI setups is low (requires adjacent network access or a compromised collector), vulnerability scanners flag any version below v0.19.0 - creating noise for both Dagger and all downstream consumers.

  3. The migration effort appears minimal. According to the OpenTelemetry Go changelog, there are no breaking type or interface changes between v0.16.0 and v0.19.0 in any of the four log packages. The changes are:

    • Err/SetErr added on Record (additive, v0.18.0)
    • Error chain unwrapping behavior change in sdk/log (v0.18.0)
    • HTTP response body read limit of 4 MiB in otlploghttp (v0.19.0)
    • attribute.EMPTY support (additive, v0.19.0)
    • HTTP2 GOAWAY frame handling fix in otlploghttp (v0.19.0)

    The major breaking changes (FilterProcessor removal, Processor interface change, Record.Resource pointer return type) all happened in v0.13.0–v0.15.0, which is before the current v0.16.0 baseline.

  4. Version drift between dagger/otel-go and dagger/dagger. The dagger/otel-go fork already declares v0.17.0 in its own go.mod. The replace directives in dagger/dagger force these back to v0.16.0, creating a version mismatch. Aligning these would reduce complexity.

How are you currently working around this?

Downstream projects that consume Dagger as a Go library maintain their own replace directives to pin these packages, mirroring the pins from Dagger. This creates a maintenance burden and causes vulnerability scanners to flag the outdated versions across all consuming projects. Some projects work around this by isolating Dagger-dependent code into a separate Go module with its own go.mod, but this adds structural complexity.

Additional context

  • The OTel log packages are pre-v1.0, which historically motivated the pin due to frequent breaking changes. However, the API has stabilized significantly since v0.15.0, and the v0.16.0 → v0.19.0 path contains no breaking changes.
  • Ideally, the replace directives could be removed entirely if dagger/otel-go is also updated to v0.19.0, so that the version flows naturally through the dependency graph.

Activity

  1. iahsanGill commented on May 17, 2026

    @iahsanGill

    Hi! I'd like to take this on.

    Plan (scoped to issue intent only):

    • Bump the four replace directives from v0.16.0 → v0.19.0 in both go.mod and sdk/go/go.mod
    • Bump matching require lines from v0.17.0 → v0.19.0 for consistency
    • Run go mod tidy in both modules
    • Will NOT touch the dagger/otel-go-forked core OTel packages — keeping scope minimal

    I've verified via the upstream CHANGELOG that v0.16 → v0.19 contains no breaking type/interface changes in the four log packages (additive APIs + CVE-2026-39882 fix + bounded body limits). Will follow the CONTRIBUTING workflow including Changie release note (Dependencies kind) and DCO sign-off.

    The follow-on cleanup (removing replace directives entirely, contingent on dagger/otel-go also moving to v0.19.0) is out of scope for this PR — that's tracked in dagger/otel-go#3 (open dependabot PR).

  2. marcofranssen commented on Oct 9, 2026

    @marcofranssen

    @sipsma @vito Do you think we can get this updated? Happy to reopen a PR like the one #131166 that got closed due to inactivity. Probably we could even go to a slightly newer release perhaps.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions