Skip to content

Commit

Permalink
Deprecate version.NewCollector (#579)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
SuperQ authored Feb 28, 2024
1 parent eb39912 commit 9fbe2ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions version/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ var (
GoArch = runtime.GOARCH
)

// Deprecated: Use github.com/prometheus/client_golang/prometheus/collectors/version.NewCollector instead.
//
// NewCollector returns a collector that exports metrics about current version
// information.
func NewCollector(program string) prometheus.Collector {
Expand Down

0 comments on commit 9fbe2ed

Please sign in to comment.