Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[en]chore: refine Metric Gauges usage in Go SDK #6572

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions content/en/docs/languages/go/instrumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ import (

var fanSpeedSubscription chan int64

var speedGauge metric.Int64Gauge
Comment on lines 552 to +554
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readability nit:

Suggested change
var fanSpeedSubscription chan int64
var speedGauge metric.Int64Gauge
var (
fanSpeedSubscription chan int64
speedGauge metric.Int64Gauge
)


func init() {
speedGauge, err := meter.Int64Gauge(
"cpu.fan.speed",
Expand Down