Skip to content

chore(deps): OpenTelemetry Go 1.47 (Logs stable), contrib 0.72 [stacked on #1214] - #1215

Merged
bpalermo merged 1 commit into
mainfrom
deps/go-otel-1.47
Oct 4, 2026
Merged

bpalermo merged 1 commit into
mainfrom
deps/go-otel-1.47

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Go modules cohort — OpenTelemetry group

Stacked on #1214 (base branch deps/go-grpc): OTel v1.47 requires google.golang.org/grpc v1.84.0 and the newer genproto/x/net that #1214 brings. Merge #1214 first. Before merging #1214 with branch deletion, retarget this PR to main (a stacked PR is closed when its base branch is deleted).

Module Current New
go.opentelemetry.io/otel, /metric, /trace, /sdk, /sdk/metric v1.46.0 v1.47.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace, /otlptrace/otlptracegrpc, /otlpmetric/otlpmetricgrpc v1.46.0 v1.47.0
go.opentelemetry.io/otel/sdk/log v0.22.0 v1.47.0 (first stable)
go.opentelemetry.io/otel/log (indirect) v0.22.0 v1.47.0 (first stable)
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.22.0 v0.23.0
go.opentelemetry.io/otel/exporters/prometheus v0.68.0 v0.69.0
go.opentelemetry.io/proto/otlp v1.11.0 v1.11.1
go.opentelemetry.io/contrib/bridges/otelslog v0.20.1 v0.21.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.71.0 v0.72.0
go.opentelemetry.io/contrib/instrumentation/runtime v0.71.0 v0.72.0

Pulled up by MVS (all // indirect): otelhttp v0.70.0 → v0.71.0, grpc-gateway/v2 v2.30.0 → v2.31.0, prometheus/client_model v0.6.2 → v0.6.3, prometheus/common v0.70.1 → v0.72.0, prometheus/procfs v0.21.1 → v0.22.0, go-openapi/jsonreference v1.0.0 → v1.0.1.

Release notes read

  • opentelemetry-go v1.47.0 / contrib v1.47.0 (v0.72.0).
  • Logs API and SDK go stable (otel/log, otel/sdk/log v0 → v1). Same module paths; no API break against what we call.
  • Behaviour changes that could touch us, checked:
    • A default max depth of 64 for span/event/link/log-record attribute values (trace + log SDK); otelslog bounds recursive traversal at 100 levels. Our attributes are flat — no effect.
    • WithDialOption options now take precedence over computed defaults in the OTLP gRPC exporters — we pass none (no WithDialOption anywhere in the tree).
    • OTLP/gRPC exporters now ignore HTTP paths in OTEL_EXPORTER_OTLP_*ENDPOINT and treat unix-abstract:// as insecure — we set no such env var in code or chart.
    • Removed experimental OTEL_GO_X_METRIC_EXPORT_BATCH_SIZE — unused.
    • otelhttp client metrics no longer carry server-side Labeler attributes — otelhttp is only indirect here.
    • contrib drops Go 1.25 — we are on 1.27.1.
  • Fixes we pick up: NewPeriodicReader data race (sdk/metric), int64 precision in Sum/Histogram aggregation, RecordError deadlock.

No code change required.

Guarded binaries (linux/amd64, bytes / modules in build info; "before" = #1214)

Binary Before After
agent 68,986,156 / 104 69,209,868 / 104
proxy-supervisor 16,285,228 / 24 16,409,004 / 25
prober 15,923,052 / 23 16,042,764 / 24
mesh-dns 17,475,500 / 30 17,628,844 / 30
registrar 57,741,452 / 103 57,965,196 / 103
controller 60,744,972 / 97 60,968,652 / 97
cni, uds-csi, identity-ready, proxy-ready, agent-ready, mesh-dns-ready unchanged
cni-install 5,715,276 / 9 5,719,372 / 9

The +1 module on proxy-supervisor and prober is go.opentelemetry.io/otel/log v1.47.0: in v1.47 the root go.opentelemetry.io/otel package imports otel/log (bazel query somepath: //agent/internal/proxy/hotrestart → otlpmetricgrpc → @io_opentelemetry_go_otel//:otel → @io_opentelemetry_go_otel_log//:log; empty on #1214). Every OTel user gets it. It is not an allow-list entry for either guard — //agent/cmd/proxy-supervisor:deps_test (forbidden-package list + 24 MiB ceiling) and the prober build pass unchanged, so no guard was edited. CLAUDE.md's "24 modules" for the supervisor becomes 25 with this.

Commands run (all green)

bazel run @rules_go//go -- get <the modules above>   # then restored `// indirect` on otel/log
bazel mod tidy ; bazel run //:gazelle                                          # no MODULE.bazel / BUILD change
bazel build //... //test/e2e:e2e_test
bazel test --test_output=errors //...                                          # 187/187 pass
bazel test --config=race <25 go_test targets = kind(go_test, rdeps(//..., otel sdk + sdk/log))>   # 25/25 pass
bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...  # OK
make format-check                                                              # exit 0
make deps-audit                                                                # go-deps-audit: OK

Merge order

#1214 → retarget this to main → this.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…trib 0.71 -> 0.72

  go.opentelemetry.io/otel, metric, trace, sdk, sdk/metric,
  exporters/otlp/otlptrace{,/otlptracegrpc}, otlpmetric/otlpmetricgrpc  v1.46.0 -> v1.47.0
  go.opentelemetry.io/otel/sdk/log, otel/log (indirect)                 v0.22.0 -> v1.47.0
  go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc            v0.22.0 -> v0.23.0
  go.opentelemetry.io/otel/exporters/prometheus                          v0.68.0 -> v0.69.0
  go.opentelemetry.io/proto/otlp                                         v1.11.0 -> v1.11.1
  go.opentelemetry.io/contrib/bridges/otelslog                           v0.20.1 -> v0.21.0
  go.opentelemetry.io/contrib/instrumentation/{grpc/otelgrpc,runtime}    v0.71.0 -> v0.72.0

Pulled up by MVS (indirect): otelhttp v0.71.0, grpc-gateway v2.31.0,
prometheus/{client_model v0.6.3, common v0.72.0, procfs v0.22.0},
go-openapi/jsonreference v1.0.1.

The root go.opentelemetry.io/otel package now imports otel/log, so
proxy-supervisor and prober link one more module (24 -> 25, 23 -> 24).
Neither guard is an allow-list for that module and both pass.

Stacked on the gRPC/golang.org/x PR: OTel 1.47 requires grpc 1.84.0.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 26b3191 into main Oct 4, 2026
24 checks passed
@bpalermo
bpalermo deleted the deps/go-otel-1.47 branch October 4, 2026 20:55
bpalermo added a commit that referenced this pull request Oct 4, 2026
…from the last two days (#1235)

- proxy-supervisor: drop "15 MiB / 24 modules" (it links 25 since the OTel
  1.47 bump, #1215) and name deps_test + check-proxy-supervisor-deps.sh as
  the source of truth; that guard asserts forbidden packages and a size
  ceiling, not a count.
- cni: the allow-list budget is 19, not 37 (#1185). Point at the guard's
  maxModules instead of repeating it; the build-graph script now forbids
  OpenTelemetry too. The plugin forwards timings to the agent.
- mesh-dns: same wording (its guard asserts 30, still correct).
- cni/internal: telemetry/ was removed by #1185.
- registrar/internal/server: the snapshot version is store revision +
  content hash since #1204.
- Add agent/internal/ownership (proposal 041), common/drain,
  common/referencegrant, and common/taint (in the node-taint entry).

Fixes #1224


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Fable 5.1 <[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.

1 participant