MCPcopy
hub / github.com/dgraph-io/dgraph / Total

Method Total

x/logger.go:136–138  ·  view source on GitHub ↗

Total returns the total duration since Start.

()

Source from the content-addressed store, hash-verified

134
135// Total returns the total duration since Start.
136func (l *SlowOperationLatency) Total() time.Duration {
137 return time.Since(l.Start)
138}
139
140// LogSlowOperation logs a slow operation with structured fields including trace ID.
141// It only logs if the operation duration exceeds the configured threshold.

Callers 1

LogSlowOperationFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected