Skip to content

Commit

Permalink
Export newUnameCollector function in uname.go (#3227)
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaly Orlov <[email protected]>
  • Loading branch information
orloffv authored Jan 25, 2025
1 parent c46d1f2 commit 810510e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collector/uname.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ type uname struct {
}

func init() {
registerCollector("uname", defaultEnabled, newUnameCollector)
registerCollector("uname", defaultEnabled, NewUnameCollector)
}

// NewUnameCollector returns new unameCollector.
func newUnameCollector(logger *slog.Logger) (Collector, error) {
func NewUnameCollector(logger *slog.Logger) (Collector, error) {
return &unameCollector{logger}, nil
}

Expand Down

0 comments on commit 810510e

Please sign in to comment.