Skip to content

vendor: github.com/docker/go-metrics v0.1.0 - #14041

Merged
fuweid merged 1 commit into
containerd:mainfrom
thaJeztah:bump_go_metrics
Aug 26, 2026
Merged

fuweid merged 1 commit into
containerd:mainfrom
thaJeztah:bump_go_metrics

Conversation

@thaJeztah

Copy link
Copy Markdown
Member
  • 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-metrics to a newer revision and refresh vendor/modules.txt, go.mod, and go.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.Collector method 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.

Comment thread go.mod Resolved
- 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]>
Copilot AI review requested due to automatic review settings August 26, 2026 12:41
@thaJeztah thaJeztah added this to the 2.4 milestone Aug 26, 2026
@thaJeztah
thaJeztah marked this pull request as ready for review August 26, 2026 12:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 12 changed files in this pull request and generated no new comments.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Aug 26, 2026
@fuweid
fuweid added this pull request to the merge queue Aug 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 26, 2026
@fuweid
fuweid added this pull request to the merge queue Aug 26, 2026
Merged via the queue into containerd:main with commit 24ecaba Aug 26, 2026
96 of 98 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Aug 26, 2026
@thaJeztah
thaJeztah deleted the bump_go_metrics branch August 26, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants