Commit 0ec464e
fix: compute metric attribute set once in Stopwatch.end()
Reuse a single MeasurementOption across histogram/sum/count recordings
instead of calling metric.WithAttributes three times independently.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a5d84c1 commit 0ec464e
File tree
1 file changed
+4
-3
lines changed1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
425 | 426 | | |
426 | 427 | | |
427 | | - | |
428 | | - | |
429 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
430 | 431 | | |
0 commit comments