Skip to content

Commit b4f70ff

Browse files
committed
love them nil pointers
Signed-off-by: Christian Winther <jippignu@gmail.com>
1 parent 40eb061 commit b4f70ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/request.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ func NewRequest() *Request {
2323
id := uuid.NewV4()
2424

2525
return &Request{
26-
id: id.String(),
27-
log: logrus.WithField("request_id", id.String()),
26+
id: id.String(),
27+
log: logrus.WithField("request_id", id.String()),
28+
metricsLabels: make([]metrics.Label, 0),
29+
loggingLabels: logrus.Fields{},
2830
}
2931
}
3032

0 commit comments

Comments
 (0)