Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: prometheus/client_golang
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.21.1
Choose a base ref
...
head repository: prometheus/client_golang
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.22.0
Choose a head ref
Loading
Showing with 6,291 additions and 75 deletions.
  1. +11 −5 .bingo/Variables.mk
  2. +5 −0 .bingo/buf.mod
  3. +336 −0 .bingo/buf.sum
  4. +3 −1 .bingo/variables.env
  5. +2 −6 .github/dependabot.yml
  6. +1 −1 .github/workflows/automerge-dependabot.yml
  7. +3 −3 .github/workflows/codeql-analysis.yml
  8. +2 −2 .github/workflows/go.yml
  9. +2 −2 .github/workflows/golangci-lint.yml
  10. +3 −3 .github/workflows/scorecard.yml
  11. +1 −1 .github/workflows/update-go-versions.yml
  12. +7 −4 .golangci.yml
  13. +22 −0 CHANGELOG.md
  14. +27 −3 Makefile
  15. +22 −7 RELEASE.md
  16. +1 −1 VERSION
  17. +4 −1 api/client.go
  18. +38 −2 api/prometheus/v1/api.go
  19. +62 −0 exp/README.md
  20. +21 −0 exp/api/remote/genproto/buf.gen.yaml
  21. +97 −0 exp/api/remote/genproto/v2/symbols.go
  22. +80 −0 exp/api/remote/genproto/v2/symbols_test.go
  23. +1,183 −0 exp/api/remote/genproto/v2/types.pb.go
  24. +2,265 −0 exp/api/remote/genproto/v2/types_vtproto.pb.go
  25. +557 −0 exp/api/remote/remote_api.go
  26. +211 −0 exp/api/remote/remote_api_test.go
  27. +227 −0 exp/api/remote/remote_headers.go
  28. +100 −0 exp/api/remote/remote_headers_test.go
  29. +17 −0 exp/exp.go
  30. +12 −0 exp/go.mod
  31. +18 −0 exp/go.sum
  32. +114 −0 exp/internal/github.com/efficientgo/core/backoff/backoff.go
  33. +108 −0 exp/internal/github.com/efficientgo/core/backoff/backoff_test.go
  34. +125 −0 exp/internal/github.com/planetscale/vtprotobuf/protohelpers/protohelpers.go
  35. +5 −5 go.mod
  36. +8 −8 go.sum
  37. +30 −0 prometheus/collectorfunc.go
  38. +83 −0 prometheus/collectorfunc_test.go
  39. +226 −0 prometheus/collectors/go_collector_go124_test.go
  40. +3 −3 prometheus/collectors/go_collector_latest_test.go
  41. +49 −1 prometheus/examples_test.go
  42. +111 −0 prometheus/go_collector_metrics_go124_test.go
  43. +1 −1 prometheus/internal/difflib_test.go
  44. +15 −11 prometheus/promhttp/http.go
  45. +2 −1 prometheus/promhttp/http_test.go
  46. +21 −0 prometheus/promhttp/internal/compression.go
  47. +2 −2 prometheus/promhttp/option_test.go
  48. +47 −0 prometheus/promhttp/zstd/zstd.go
  49. +1 −1 supported_go_versions.txt
16 changes: 11 additions & 5 deletions .bingo/Variables.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.8. DO NOT EDIT.
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.9. DO NOT EDIT.
# All tools are designed to be build inside $GOBIN.
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
GOPATH ?= $(shell go env GOPATH)
@@ -7,16 +7,22 @@ GO ?= $(shell which go)

# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
# will be used; reinstalling only if needed.
# For example for goimports variable:
# For example for buf variable:
#
# In your main Makefile (for non array binaries):
#
#include .bingo/Variables.mk # Assuming -dir was set to .bingo .
#
#command: $(GOIMPORTS)
# @echo "Running goimports"
# @$(GOIMPORTS) <flags/args..>
#command: $(BUF)
# @echo "Running buf"
# @$(BUF) <flags/args..>
#
BUF := $(GOBIN)/buf-v1.39.0
$(BUF): $(BINGO_DIR)/buf.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/buf-v1.39.0"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v1.39.0 "github.com/bufbuild/buf/cmd/buf"

GOIMPORTS := $(GOBIN)/goimports-v0.9.3
$(GOIMPORTS): $(BINGO_DIR)/goimports.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
5 changes: 5 additions & 0 deletions .bingo/buf.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT

go 1.22.6

require github.com/bufbuild/buf v1.39.0 // cmd/buf
Loading