add space between error and %v in gauge example. (#1116)
diff --git a/examples/gauges/README.md b/examples/gauges/README.md
index 5ae3d7f..80ed039 100644
--- a/examples/gauges/README.md
+++ b/examples/gauges/README.md
@@ -63,7 +63,7 @@
metric.WithDescription("Process heap allocation"),
metric.WithUnit(metricdata.UnitBytes))
if err != nil {
- log.Fatalf("error creating heap allocation gauge, error%v\n", err)
+ log.Fatalf("error creating heap allocation gauge, error %v\n", err)
}
```
@@ -76,7 +76,7 @@
metric.WithDescription("process heap idle to allocate ratio"),
metric.WithUnit(metricdata.UnitDimensionless))
if err != nil {
- log.Fatalf("error creating process heap idle to allocate ratio gauge, error%v\n", err)
+ log.Fatalf("error creating process heap idle to allocate ratio gauge, error %v\n", err)
}
```
@@ -89,7 +89,7 @@
```go
allocEntry, err = allocGauge.GetEntry()
if err != nil {
- log.Fatalf("error getting heap allocation gauge entry, error%v\n", err)
+ log.Fatalf("error getting heap allocation gauge entry, error %v\n", err)
}
```
@@ -99,7 +99,7 @@
```go
ratioEntry, err = ratioGauge.GetEntry()
if err != nil {
- log.Fatalf("error getting process heap idle to allocate ratio gauge entry, error%v\n", err)
+ log.Fatalf("error getting process heap idle to allocate ratio gauge entry, error %v\n", err)
}
```
@@ -269,12 +269,12 @@
metric.WithDescription("Process heap allocation"),
metric.WithUnit(metricdata.UnitBytes))
if err != nil {
- log.Fatalf("error creating heap allocation gauge, error%v\n", err)
+ log.Fatalf("error creating heap allocation gauge, error %v\n", err)
}
allocEntry, err = allocGauge.GetEntry()
if err != nil {
- log.Fatalf("error getting heap allocation gauge entry, error%v\n", err)
+ log.Fatalf("error getting heap allocation gauge entry, error %v\n", err)
}
// Create Float64Gauge to report fractional cpu consumed by Garbage Collection.
@@ -283,12 +283,12 @@
metric.WithDescription("process heap idle to allocate ratio"),
metric.WithUnit(metricdata.UnitDimensionless))
if err != nil {
- log.Fatalf("error creating process heap idle to allocate ratio gauge, error%v\n", err)
+ log.Fatalf("error creating process heap idle to allocate ratio gauge, error %v\n", err)
}
ratioEntry, err = ratioGauge.GetEntry()
if err != nil {
- log.Fatalf("error getting process heap idle to allocate ratio gauge entry, error%v\n", err)
+ log.Fatalf("error getting process heap idle to allocate ratio gauge entry, error %v\n", err)
}
// record gauge metrics every 5 seconds. This example records the gauges periodically. However,
diff --git a/examples/gauges/gauge.go b/examples/gauges/gauge.go
index 287d0b2..2b744e7 100644
--- a/examples/gauges/gauge.go
+++ b/examples/gauges/gauge.go
@@ -170,14 +170,14 @@
metric.WithDescription("Process heap allocation"),
metric.WithUnit(metricdata.UnitBytes))
if err != nil {
- log.Fatalf("error creating heap allocation gauge, error%v\n", err)
+ log.Fatalf("error creating heap allocation gauge, error %v\n", err)
}
// END alloc
// START entryAlloc
allocEntry, err = allocGauge.GetEntry()
if err != nil {
- log.Fatalf("error getting heap allocation gauge entry, error%v\n", err)
+ log.Fatalf("error getting heap allocation gauge entry, error %v\n", err)
}
// END entryAlloc
@@ -188,14 +188,14 @@
metric.WithDescription("process heap idle to allocate ratio"),
metric.WithUnit(metricdata.UnitDimensionless))
if err != nil {
- log.Fatalf("error creating process heap idle to allocate ratio gauge, error%v\n", err)
+ log.Fatalf("error creating process heap idle to allocate ratio gauge, error %v\n", err)
}
// END idle
// START entryIdle
ratioEntry, err = ratioGauge.GetEntry()
if err != nil {
- log.Fatalf("error getting process heap idle to allocate ratio gauge entry, error%v\n", err)
+ log.Fatalf("error getting process heap idle to allocate ratio gauge entry, error %v\n", err)
}
// END entryIdle