Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
278
func
ClearTraces() {
279
mu.Lock()
280
if
traceBuffer != nil {
281
traceBuffer.Clear()
282
}
283
mu.Unlock()
284
}
Callers
1
ClearAPITracesEndpoint
Function · 0.92
Calls
3
Lock
Method · 0.65
Unlock
Method · 0.65
Clear
Method · 0.45
Tested by
no test coverage detected