Skip to content

gobuild: bump otel-go to v1.47.0 - #110

Merged
sipsma merged 3 commits into
mainfrom
bump-otel-go-v1.47.0
Nov 25, 2026
Merged

sipsma merged 3 commits into
mainfrom
bump-otel-go-v1.47.0

Conversation

@vito

@vito vito commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/dagger/otel-go in gobuild/go.mod from v1.43.1-0.20261102220336-aa07da582c21 to v1.47.0, which brings go.opentelemetry.io/otel (and trace, sdk, metric) to v1.47.0 and moves to the stable log API (go.opentelemetry.io/otel/log v1.47.0).

What broke: gobuild's four replace directives held otel/log, otel/sdk/log and the otlplog* exporters at v0.16.0, a workaround for the experimental log API that older otel-go compiled against. With otel v1.47.0 that old log package causes an import cycle through otel/internal/global, so the build failed. The replaces are now removed; otel-go v1.47.0 builds against log v1.47.0 directly.

go mod tidy also drops gRPC and its dependencies from the module graph, because otel-go's default exporters are now http/protobuf only.

The second commit moves testRunnerCommit in go.dang (the otel-go commit otelgotest is built from) from aa07da58 to v1.47.0 (6db37744). Between those commits cmd/otelgotest, gotestmain and internal/ are unchanged, so the flags go.dang passes (-json, -p, the prebuilt binary and its test flags) and the go test -json stream that go-test-report reads stay the same. The only runner-visible changes:

  • gotest now also logs a package's own output, such as TestMain's or the FAIL line, on the package span (telemetry only).
  • The default exporters speak http/protobuf only, which is what the engine provides, so the runner no longer links gRPC.

Verified: go build/go vet/go test ./... in gobuild/, plus these checks: gobuild-check, go-sdk/generate/stale, dang-sdk/generate/stale, binary-check, module-test-check, tests-collection-check, named-failure-check, single-module-check, every selected-* check, and gomod-checks/helper-check.

vito added 2 commits November 24, 2026 03:32
otel-go v1.47.0 moves to OpenTelemetry v1.47.0 and its stable log API
(go.opentelemetry.io/otel/log v1.47.0). The replace directives that held
the log API and its exporters at v0.16.0, for the experimental API older
otel-go compiled against, now pin a log package that imports otel's
internal/global in a cycle with otel v1.47.0, so they go.

otel-go's default exporters are now http/protobuf only, so the tidy also
drops gRPC and its dependencies from gobuild's module graph.

Signed-off-by: Alex Suraci <[email protected]>
The test runner was built from otel-go aa07da58. v1.47.0 leaves
cmd/otelgotest and its flags, and the go test -json stream it prints,
unchanged; its gotest package now also logs a package's own output, such
as TestMain's or the FAIL line, on the package span. Its exporters are
http/protobuf only, which is what the engine provides, so the runner no
longer links gRPC.

Signed-off-by: Alex Suraci <[email protected]>
The otel-go v1.47.0 tag predates its semconv v1.43.0 fix: its fallback
resource still uses semconv v1.39.0 and conflicts with OTel 1.47's
resource.Default ("conflicting Schema URL"). Per the otel-bump policy, pin
the fix commit e79f0e1 instead, both in gobuild/go.mod and as the commit
otelgotest is built from.

Signed-off-by: Alex Suraci <[email protected]>
@sipsma
sipsma merged commit 262b66d into main Nov 25, 2026
107 checks passed
eunomie pushed a commit to eunomie/go-sdk that referenced this pull request Nov 25, 2026
Move daggerGo from dagger/go 79a92be to its release v0.5.0
(262b66d), the merge of dagger/go#110. Its gobuild is on otel-go and
OpenTelemetry v1.47.0, out of the range of GHSA-q7gw-24fr-5p69, where
79a92be's required otel/sdk v1.43.0 and otel/trace v1.46.0, and pinned
otel/sdk/log to v0.16.0. The engine image ships that gobuild for the
built-in Go SDK, which moves to the same commit, since the image's build
requires the two to match.

v0.5.0 also quotes linker string values (dagger/go#107) and reads
discovery JSON with File.asJson (dagger/go#108), which needs
v1.0.0-beta.26, go-sdk's daggerGoFloor. The calls generated entrypoints
make are unchanged.

Signed-off-by: Erik Sipsma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants