mirror of
https://github.com/fosrl/gerbil.git
synced 2026-07-16 01:07:43 -05:00
[PR #79] [MERGED] Enhance observability with OTLP timeout and API unification #540
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/gerbil/pull/79
Author: @marcschaeferger
Created: 5/3/2026
Status: ✅ Merged
Merged: 5/3/2026
Merged by: @oschwartz10612
Base:
dev← Head:observability-update📝 Commits (8)
4a322a4chore(docs): add OTLP timeout docs and minor fixesf130a7cchore(deps): update OpenTelemetry and related modulesbcb5cc4refactor(metrics): safe initialization and instrument factory73d4d4dfeat(observability): unify backend APIs and harden OTel handling191b4fafeat(prometheus): robust label validation and registration handlingcda6fa6feat(cli/proxy): add OTLP timeout flag and make proxy metrics resilient3f95e2dfix(otel): revert semconv version and correct deployment environment attribute375cb8bUpdate CODEOWNERS📊 Changes
20 files changed (+1142 additions, -278 deletions)
View changed files
📝
README.md(+1 -1)📝
docs/observability.md(+8 -4)📝
examples/otel-collector-config.yaml(+2 -1)📝
go.mod(+12 -12)📝
go.sum(+26 -26)📝
internal/metrics/metrics.go(+474 -72)📝
internal/metrics/metrics_test.go(+8 -4)📝
internal/observability/config.go(+11 -1)📝
internal/observability/metrics.go(+16 -15)📝
internal/observability/metrics_test.go(+82 -17)📝
internal/observability/noop.go(+10 -17)📝
internal/observability/noop_test.go(+51 -16)📝
internal/observability/otel/backend.go(+131 -32)📝
internal/observability/otel/backend_test.go(+39 -5)📝
internal/observability/otel/exporter.go(+20 -2)📝
internal/observability/otel/resource.go(+3 -3)📝
internal/observability/prometheus/backend.go(+154 -29)📝
internal/observability/prometheus/backend_test.go(+68 -10)📝
main.go(+16 -1)📝
proxy/proxy.go(+10 -10)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description (generated by Copilot)
This pull request introduces several improvements and updates to the observability and metrics subsystem, focusing on OpenTelemetry (OTel) configuration, validation, and documentation. It also includes dependency updates, minor test improvements, and a new code ownership assignment.
Key highlights:
Observability & Metrics Configuration
Timeoutfield to theOTelConfigstruct, allowing configuration of the OTLP exporter connection setup timeout (default 10s). Updated all related documentation, CLI flags, and environment variable references to include this new option. [1] [2] [3] [4] [5] [6] [7]Dependency & Interface Updates
NewCounter,NewUpDownCounter, etc.) to return errors, propagating error handling from the underlying implementations. [1] [2] [3]Documentation & Examples
file_formatfield to the example OTel collector config.Testing Improvements
Miscellaneous
internal/observability/**directory. (.github/CODEOWNERS)How to test?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.