Repository navigation
vendor: github.com/docker/go-metrics v0.1.0 - #14041
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the vendored github.com/docker/go-metrics dependency and associated vendoring metadata, bringing in upstream API/documentation improvements (timers with custom buckets, safer label handling, and HTTP handler instrumentation refactors) along with dependency version bumps.
Changes:
- Update vendored
github.com/docker/go-metricsto a newer revision and refreshvendor/modules.txt,go.mod, andgo.sum. - Add timer constructors that accept custom histogram buckets; refactor HTTP instrumentation to encapsulate collectors and wrapping behavior.
- Improve API/package documentation and add missing
prometheus.Collectormethod docs on metric wrappers.
Reviewed changes
Copilot reviewed 1 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| vendor/modules.txt | Updates vendoring manifest to the new github.com/docker/go-metrics version and Go version marker. |
| vendor/github.com/docker/go-metrics/timer.go | Documents Collector methods; retains observer-based timer implementation. |
| vendor/github.com/docker/go-metrics/register.go | Clarifies Register/Deregister docs as wrappers around Prometheus default registry helpers. |
| vendor/github.com/docker/go-metrics/README.md | Refreshes README wording and examples (but currently contains API mismatches). |
| vendor/github.com/docker/go-metrics/namespace.go | Introduces label cloning/merging helpers, timer bucket APIs, and refactors HTTP metric construction. |
| vendor/github.com/docker/go-metrics/LICENSE.docs | Removes docs license file from the vendored tree. |
| vendor/github.com/docker/go-metrics/handler.go | Refactors HTTP instrumentation to use per-metric wrappers with an internal wrap function. |
| vendor/github.com/docker/go-metrics/gauge.go | Adds Collector method docs on gauge wrappers. |
| vendor/github.com/docker/go-metrics/docs.go | Improves package doc comment formatting (minor grammar issue remains). |
| vendor/github.com/docker/go-metrics/counter.go | Adds Collector method docs on counter wrappers. |
| go.sum | Updates checksums for the bumped dependencies (including go-metrics pseudo-version). |
| go.mod | Bumps github.com/docker/go-metrics requirement to the new vendored revision. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Add support for creating timers with custom histogram buckets. - Update `github.com/prometheus/client_golang` to v1.20.5. - Update the minimum supported Go version to Go 1.21. - Improve HTTP handler instrumentation, including minor performance improvements and cleanup. - Avoid mutating shared label maps when creating namespaces and metrics. - Encapsulate the Prometheus collector used by `HTTPMetric`. - Improve package and API documentation. - Update `golang.org/x/sys` and other dependencies. full diff: docker/go-metrics@v0.0.1...v0.1.0 Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah
force-pushed
the
bump_go_metrics
branch
from
August 26, 2026 12:41
db5911d to
b44bea5
Compare
thaJeztah
marked this pull request as ready for review
August 26, 2026 12:41
estesp
approved these changes
Aug 26, 2026
fuweid
approved these changes
Aug 26, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 26, 2026
This was referenced Sep 15, 2026
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.
github.com/prometheus/client_golangto v1.20.5.HTTPMetric.golang.org/x/sysand other dependencies.full diff: docker/go-metrics@v0.0.1...v0.1.0