MCPcopy Create free account
hub / github.com/dagger/dagger / withFloatField

Function withFloatField

cmd/engine/debug.go:240–242  ·  view source on GitHub ↗
(l *logrus.Entry, name string, value T)

Source from the content-addressed store, hash-verified

238}
239
240func withFloatField[T constraints.Float](l *logrus.Entry, name string, value T) *logrus.Entry {
241 return l.WithField(name, strconv.FormatFloat(float64(value), 'f', -1, 64))
242}
243
244func withDurationField(l *logrus.Entry, name string, value time.Duration) *logrus.Entry {
245 return l.WithField(name, value.String())

Callers 1

logMetricsFunction · 0.85

Calls 1

WithFieldMethod · 0.45

Tested by

no test coverage detected