trace: Add storage & OS tracing (#11889)

This commit is contained in:
Anis Elleuch authored and GitHub committed 2021-03-26 23:24:07 -07:00
1 parent 95096e31a7
commit d8b5adfd10
17 files changed
+358 -199

No files matched your search

+2 -2
View File
@@ -77,8 +77,8 @@ func registerWebRouter(router *mux.Router) error {
"bucket": bucketName,
"object": objectName,
})
if globalHTTPTrace.NumSubscribers() > 0 {
globalHTTPTrace.Publish(WebTrace(ri))
if globalTrace.NumSubscribers() > 0 {
globalTrace.Publish(WebTrace(ri))
}
ctx := newContext(ri.Request, ri.ResponseWriter, ri.Method)
logger.AuditLog(ctx, ri.ResponseWriter, ri.Request, claims.Map())