Skip to content

Commit f1bec54

Browse files
author
Peter Jausovec
committed
Update the ExampleRegister test
Signed-off-by: Peter Jausovec <[email protected]>
1 parent b686a9e commit f1bec54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus/examples_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func ExampleRegister() {
282282
// taskCounter unregistered.
283283
// taskCounterVec not registered: a previously registered descriptor with the same fully-qualified name as Desc{fqName: "worker_pool_completed_tasks_total", help: "Total number of tasks completed.", constLabels: {}, variableLabels: [worker_id]} has different label names or a different help string
284284
// taskCounterVec registered.
285-
// Worker initialization failed: inconsistent label cardinality
285+
// Worker initialization failed: inconsistent label cardinality: expected 1 label values but got 2 in []string{"42", "spurious arg"}
286286
// notMyCounter is nil.
287287
// taskCounterForWorker42 registered.
288288
// taskCounterForWorker2001 registered.

0 commit comments

Comments
 (0)