Skip to content

chore: Update opentelemetry-go monorepo to v1 - #1570

Merged
hwbrzzl merged 2 commits into
masterfrom
renovate/major-opentelemetry-go-monorepo
Oct 6, 2026
Merged

hwbrzzl merged 2 commits into
masterfrom
renovate/major-opentelemetry-go-monorepo

Conversation

@renovate

@renovate renovate Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade the OpenTelemetry Go log modules (otel/log and sdk/log) from v0.22.0 to v1.47.0, the first stable release of the Logs API and SDK.
  • Register the logger provider through the non-deprecated otel.SetLoggerProvider, clearing the lint / lint staticcheck SA1019 failure.
  • Preserve existing logging behaviour: the noop and SDK providers are still installed globally with the same shutdown and flush wiring.

Why

Renovate bumps the OpenTelemetry Go monorepo to v1. This release stabilises go.opentelemetry.io/otel/log and go.opentelemetry.io/otel/sdk/log, and deprecates go.opentelemetry.io/otel/log/global. telemetry.NewLoggerProvider now calls otel.SetLoggerProvider from the root package, so lint passes with no change in runtime behaviour.

Applications that enable the OTLP log exporter continue to work unchanged:

// config/telemetry.go
func init() {
	config := facades.Config()
	config.Add("telemetry", map[string]any{
		"service": map[string]any{
			"name": config.Env("APP_NAME", "goravel"),
		},
		"logs": map[string]any{
			"exporter": config.Env("OTEL_LOGS_EXPORTER", "otlplog"),
		},
		"exporters": map[string]any{
			"otlplog": map[string]any{
				"driver":   "otlp",
				"endpoint": config.Env("OTEL_EXPORTER_OTLP_LOGS_ENDPOINT", "localhost:4318"),
			},
		},
	})
}

@renovate
renovate Bot requested a review from a team as a code owner October 5, 2026 01:01
@renovate

renovate Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 5 additional dependencies were updated

Details:

Package Change
go.opentelemetry.io/otel v1.46.0 -> v1.47.0
go.opentelemetry.io/otel/metric v1.46.0 -> v1.47.0
go.opentelemetry.io/otel/sdk v1.46.0 -> v1.47.0
go.opentelemetry.io/otel/sdk/metric v1.46.0 -> v1.47.0
go.opentelemetry.io/otel/trace v1.46.0 -> v1.47.0

@codecov

codecov Bot commented Oct 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.87%. Comparing base (fb354e7) to head (b48c386).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1570   +/-   ##
=======================================
  Coverage   72.87%   72.87%           
=======================================
  Files         412      412           
  Lines       26880    26880           
=======================================
  Hits        19590    19590           
  Misses       7288     7288           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hwbrzzl
hwbrzzl merged commit 6028558 into master Oct 6, 2026
21 checks passed
@hwbrzzl
hwbrzzl deleted the renovate/major-opentelemetry-go-monorepo branch October 6, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant