- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TTFB (0.02 sec)
-
internal/logger/audit.go
outputBytes = int64(tc.ResponseRecorder.Size()) headerBytes = int64(tc.ResponseRecorder.HeaderSize()) timeToResponse = time.Now().UTC().Sub(tc.ResponseRecorder.StartTime) timeToFirstByte = tc.ResponseRecorder.TTFB() } entry.AccessKey = reqInfo.Cred.AccessKey entry.ParentUser = reqInfo.Cred.ParentUser entry.API.Name = reqInfo.API entry.API.Bucket = reqInfo.BucketName entry.API.Object = reqInfo.ObjectName
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 4.6K bytes - Viewed (0) -
internal/http/response-recorder.go
if !ok { return nil, nil, fmt.Errorf("response writer does not support hijacking. Type is %T", lrw.ResponseWriter) } return hj.Hijack() } // TTFB of the request - this function needs to be called // when the request is finished to provide accurate data func (lrw *ResponseRecorder) TTFB() time.Duration { if lrw.ttfbBody != 0 { return lrw.ttfbBody } return lrw.ttfbHeader }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/metrics-v3-api.go
} for name, value := range httpStats.TotalS3Canceled.APIStats { m.Set(apiRequestsCanceledTotal, float64(value), "name", name, "type", "s3") } return nil } // loadAPIRequestsTTFBMetrics - loads S3 TTFB metrics. // // This is a `MetricsLoaderFn`. func loadAPIRequestsTTFBMetrics(ctx context.Context, m MetricValues, _ *metricsCache) error { renameLabels := map[string]string{"api": "name"}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 9.4K bytes - Viewed (0) -
cmd/http-stats.go
} if w != nil { // Increment the prometheus http request response histogram with API, Bucket bucketHTTPRequestsDuration.With(prometheus.Labels{ "api": api, "bucket": bucket, }).Observe(w.TTFB().Seconds()) } bh.Lock() defer bh.Unlock() hstats, ok := bh.httpStats[bucket] if !ok { hstats = bucketHTTPAPIStats{ currentS3Requests: &HTTPAPIStats{},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 11.4K bytes - Viewed (0) -
cmd/http-tracer.go
}, CallStats: madmin.TraceCallStats{ Latency: reqEndTime.Sub(respRecorder.StartTime), InputBytes: inputBytes, OutputBytes: respRecorder.Size(), TimeToFirstByte: respRecorder.TTFB(), }, }, } globalTrace.Publish(t) }) } func httpTrace(f http.HandlerFunc, logBody bool) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 6K bytes - Viewed (0)