Skip to content

Commit 9fbe2ed

Browse files
authored
Deprecate version.NewCollector (#579)
Mark the version.NewCollector function deprecated in favor of the new version collector package in github.com/prometheus/client_golang. This will allow us to break the circular dependency between the two repos. Signed-off-by: SuperQ <[email protected]>
1 parent eb39912 commit 9fbe2ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

version/info.go

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ var (
3535
GoArch = runtime.GOARCH
3636
)
3737

38+
// Deprecated: Use github.com/prometheus/client_golang/prometheus/collectors/version.NewCollector instead.
39+
//
3840
// NewCollector returns a collector that exports metrics about current version
3941
// information.
4042
func NewCollector(program string) prometheus.Collector {

0 commit comments

Comments
 (0)