Improve doc comment for Describe.

This commit is contained in:
Bjoern Rabenstein 2015-01-13 16:52:42 +01:00
parent 159e96f6c7
commit dd4e57186a
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ type Collector interface {
// duplicate descriptors. Those duplicates are simply ignored. However,
// two different Collectors must not send duplicate descriptors.) This
// method idempotently sends the same descriptors throughout the
// lifetime of the Collector. A Collector unable to describe itself must
// send an invalid descriptor (created with NewInvalidDesc).
// lifetime of the Collector. If a Collector encounters an error while
// executing this method, it must send an invalid descriptor (created
// with NewInvalidDesc) to signal the error to the registry.
Describe(chan<- *Desc)
// Collect is called by Prometheus when collecting metrics. The
// implementation sends each collected metric via the provided channel