Skip to content

chore(deps): OpenTelemetry 1.47.0, and the logger provider from the otel package - #105

Merged
braghettos merged 1 commit into
mainfrom
chore/otel-1.47
Nov 14, 2026
Merged

braghettos merged 1 commit into
mainfrom
chore/otel-1.47

Conversation

@braghettos

Copy link
Copy Markdown
Collaborator

What

Moves every OpenTelemetry module to 1.47.0 (otelslog bridge to v0.21.0) and reads the global logger provider from go.opentelemetry.io/otel.

Why

#99 and #100 fail lint. In 1.47.0 the Logs API is stable and go.opentelemetry.io/otel/log/global is deprecated, so staticcheck (SA1019) rejects logglobal.GetLoggerProvider() in pkg/logging/otel.go. Those two PRs also leave the OTLP exporters at 1.45.0 next to a 1.47.0 SDK.

Behaviour

None changes. The deprecated package's functions forward to otel.GetLoggerProvider / otel.SetLoggerProvider, so there is one global provider under both names. A binary that still calls log/global.SetLoggerProvider keeps exporting through NewOTelHandler.

Changes

  • pkg/logging/otel.go: otel.GetLoggerProvider(); comments name otel.SetLoggerProvider.
  • docs/api.md: the same name.
  • go.mod, go.sum: all go.opentelemetry.io/otel* at 1.47.0, the exporters included.
  • hack/rlgov-measure/go.mod, go.sum: follow, because that module builds against this tree.

Checked locally

  • go build ./..., go vet and the tests of pkg/logging and pkg/telemetry pass.
  • The harness builds for Linux.
  • Lint and the full suite are left to CI: the local golangci-lint is v1 and cannot load this repository's config.

Supersedes #99 and #100.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NSM9VYtekkTV1h9dK4WxM4

…tel package

The Logs API is stable in 1.47.0 and go.opentelemetry.io/otel/log/global is
deprecated: its functions now forward to go.opentelemetry.io/otel, so both
names reach the same global provider. NewOTelHandler reads it with
otel.GetLoggerProvider, and the comments and docs/api.md name
otel.SetLoggerProvider. A binary that still installs its provider through the
deprecated package keeps working.

All OpenTelemetry modules move together (the exporters too, which the two
dependabot PRs left at 1.45.0), with the otelslog bridge at v0.21.0. The
measurement harness module follows, since it builds against this tree.

Supersedes #99 and #100.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NSM9VYtekkTV1h9dK4WxM4
@braghettos
braghettos merged commit 21c97a6 into main Nov 14, 2026
14 checks passed
@braghettos
braghettos deleted the chore/otel-1.47 branch November 14, 2026 09:39
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