diff --git a/example/dice/rolldice.go b/example/dice/rolldice.go index 9b6e700f2b4..10bd237c325 100644 --- a/example/dice/rolldice.go +++ b/example/dice/rolldice.go @@ -34,7 +34,7 @@ var ( func init() { var err error - rollCnt, err = meter.Int64Counter("roll_counter", + rollCnt, err = meter.Int64Counter("dice.rolls", metric.WithDescription("The number of rolls by roll value"), metric.WithUnit("{roll}")) if err != nil { @@ -43,7 +43,7 @@ func init() { } func rolldice(w http.ResponseWriter, r *http.Request) { - ctx, span := tracer.Start(r.Context(), "do_roll") + ctx, span := tracer.Start(r.Context(), "roll") defer span.End() roll := 1 + rand.Intn(6)