NewBuildInfoCollector returns a collector collecting a single metric "go_build_info" with the constant value 1 and three labels "path", "version", and "checksum". Their label values contain the main module path, version, and checksum, respectively. The labels will only have meaningful values if the
()
| 35 | // https://github.com/povilasv/prommod for an example of a collector for the |
| 36 | // module dependencies. |
| 37 | func NewBuildInfoCollector() prometheus.Collector { |
| 38 | //nolint:staticcheck // Ignore SA1019 until v2. |
| 39 | return prometheus.NewBuildInfoCollector() |
| 40 | } |
no test coverage detected