Total returns the total duration since Start.
()
| 134 | |
| 135 | // Total returns the total duration since Start. |
| 136 | func (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. |