prometheus/prompb
beorn7 747c5ee2b1 Apply analyzer "modernize" to the whole codebase
See
https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize
for details.

This ran into a few issues (arguably bugs in the modernize tool),
which I will fix in the next commit, so that we have transparency what
was done automatically.

Beyond those hiccups, I believe all the changes applied are
legitimate. Even where there might be no tangible direct gain, I would
argue it's still better to use the "modern" way to avoid micro
discussions in tiny style PRs later.

Signed-off-by: beorn7 <beorn@grafana.com>
2025-08-27 14:48:41 +02:00
..
io/prometheus Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
rwcommon Fix linting issues found by golangci-lint v2.0.2 (#16368) 2025-05-03 19:05:13 +02:00
README.md Update prompb/README.md 2023-04-26 12:57:20 +03:00
buf.gen.yaml feat(proto): add buf configuration and update dependencies for code generation (#16239) 2025-03-19 22:19:08 +01:00
buf.lock feat(proto): add buf configuration and update dependencies for code generation (#16239) 2025-03-19 22:19:08 +01:00
buf.yaml
codec.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
custom.go [PRW 2.0] Merging `remote-write-2.0` feature branch to main (PRW 2.0 support + metadata in WAL) (#14395) 2024-07-04 14:29:20 -07:00
remote.pb.go
remote.proto
types.pb.go Optionally translate OTel histograms to NHCB (#15850) 2025-03-20 09:18:51 -07:00
types.proto Optionally translate OTel histograms to NHCB (#15850) 2025-03-20 09:18:51 -07:00

README.md

The compiled protobufs are version controlled and you won't normally need to re-compile them when building Prometheus.

If however you have modified the defs and do need to re-compile, run make proto from the parent dir.

In order for the script to run, you'll need protoc (version 3.15.8) in your PATH.