Skip to content

Commit 39445b0

Browse files
committed
fmt
1 parent 121daa3 commit 39445b0

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

pkg/observability/log/field.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ type Field struct {
1414

1515
// Convenience constructors for common field types.
1616

17-
func String(key, value string) Field { return Field{Key: key, Value: value} }
18-
func Int(key string, value int) Field { return Field{Key: key, Value: value} }
19-
func Int64(key string, value int64) Field { return Field{Key: key, Value: value} }
20-
func Float64(key string, value float64) Field { return Field{Key: key, Value: value} }
21-
func Bool(key string, value bool) Field { return Field{Key: key, Value: value} }
22-
func Err(err error) Field { return Field{Key: "error", Value: err} }
17+
func String(key, value string) Field { return Field{Key: key, Value: value} }
18+
func Int(key string, value int) Field { return Field{Key: key, Value: value} }
19+
func Int64(key string, value int64) Field { return Field{Key: key, Value: value} }
20+
func Float64(key string, value float64) Field { return Field{Key: key, Value: value} }
21+
func Bool(key string, value bool) Field { return Field{Key: key, Value: value} }
22+
func Err(err error) Field { return Field{Key: "error", Value: err} }
2323
func Duration(key string, value time.Duration) Field { return Field{Key: key, Value: value} }
24-
func Any(key string, value any) Field { return Field{Key: key, Value: value} }
24+
func Any(key string, value any) Field { return Field{Key: key, Value: value} }
2525

2626
// Stringer returns the string representation of a Field.
2727
func (f Field) String() string {

pkg/observability/metrics/noop_adapter.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ func NewNoopMetrics() *NoopMetrics {
1212
return &NoopMetrics{}
1313
}
1414

15-
func (n *NoopMetrics) Increment(_ string, _ map[string]string) {}
16-
func (n *NoopMetrics) Counter(_ string, _ map[string]string, _ int64) {}
17-
func (n *NoopMetrics) Distribution(_ string, _ map[string]string, _ float64) {}
15+
func (n *NoopMetrics) Increment(_ string, _ map[string]string) {}
16+
func (n *NoopMetrics) Counter(_ string, _ map[string]string, _ int64) {}
17+
func (n *NoopMetrics) Distribution(_ string, _ map[string]string, _ float64) {}
1818
func (n *NoopMetrics) DistributionMs(_ string, _ map[string]string, _ time.Duration) {}
19-
func (n *NoopMetrics) WithTags(_ map[string]string) Metrics { return n }
19+
func (n *NoopMetrics) WithTags(_ map[string]string) Metrics { return n }

0 commit comments

Comments
 (0)