Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
valyala committed Nov 29, 2023
1 parent 77e6234 commit bf6d132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func writeRuntimeMetrics(w io.Writer) {
func writeRuntimeMetric(w io.Writer, name string, sample *runtimemetrics.Sample) {
switch sample.Value.Kind() {
case runtimemetrics.KindBad:
panic(fmt.Errorf("BUG: unexpected runtimemetrics.KindBad"))
panic(fmt.Errorf("BUG: unexpected runtimemetrics.KindBad for sample.Name=%q", sample.Name))
case runtimemetrics.KindUint64:
fmt.Fprintf(w, "%s %d\n", name, sample.Value.Uint64())
case runtimemetrics.KindFloat64:
Expand Down

0 comments on commit bf6d132

Please sign in to comment.