Repository navigation
gobuild: bump otel-go to v1.47.0 - #110
Merged
Merged
Conversation
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
approved these changes
Nov 25, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
github.com/dagger/otel-goingobuild/go.modfromv1.43.1-0.20261102220336-aa07da582c21tov1.47.0, which bringsgo.opentelemetry.io/otel(and trace, sdk, metric) to v1.47.0 and moves to the stable log API (go.opentelemetry.io/otel/logv1.47.0).What broke: gobuild's four
replacedirectives heldotel/log,otel/sdk/logand theotlplog*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 throughotel/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 tidyalso drops gRPC and its dependencies from the module graph, because otel-go's default exporters are now http/protobuf only.The second commit moves
testRunnerCommitingo.dang(the otel-go commit otelgotest is built from) fromaa07da58to v1.47.0 (6db37744). Between those commitscmd/otelgotest,gotestmainandinternal/are unchanged, so the flags go.dang passes (-json,-p, the prebuilt binary and its test flags) and thego test -jsonstream that go-test-report reads stay the same. The only runner-visible changes:Verified:
go build/go vet/go test ./...ingobuild/, 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, everyselected-*check, andgomod-checks/helper-check.