Skip to content

Commit

Permalink
metrics: Fix generating metrics for docs
Browse files Browse the repository at this point in the history
Silly indexing mistake.

Signed-off-by: Anna Kapuscinska <[email protected]>
  • Loading branch information
lambdanis committed Jul 10, 2024
1 parent 4d945f8 commit dc1dcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metrics/granularmetric.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func initForDocs[L FilteredLabels](
// third unconstrained labels
current = current[len(constrained):]
for i := range unconstrained {
current[len(constrained)+i] = unconstrained[i].ExampleValue
current[i] = unconstrained[i].ExampleValue
initMetric(lvs...)
}
}

0 comments on commit dc1dcfb

Please sign in to comment.