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

Function withSignedIntField

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

Source from the content-addressed store, hash-verified

234}
235
236func withSignedIntField[T constraints.Signed](l *logrus.Entry, name string, value T) *logrus.Entry {
237 return l.WithField(name, strconv.FormatInt(int64(value), 10))
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))

Callers 1

logMetricsFunction · 0.85

Calls 1

WithFieldMethod · 0.45

Tested by

no test coverage detected