MCPcopy Index your code
hub / github.com/mudler/LocalAI / ClearTraces

Function ClearTraces

core/http/middleware/trace.go:278–284  ·  view source on GitHub ↗

ClearTraces clears the in-memory logs

()

Source from the content-addressed store, hash-verified

276
277// ClearTraces clears the in-memory logs
278func ClearTraces() {
279 mu.Lock()
280 if traceBuffer != nil {
281 traceBuffer.Clear()
282 }
283 mu.Unlock()
284}

Callers 1

ClearAPITracesEndpointFunction · 0.92

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
ClearMethod · 0.45

Tested by

no test coverage detected