Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for timeToFirstByte (0.11 sec)

  1. internal/logger/audit.go

    		for _, t := range reqInfo.tags {
    			tags[t.Key] = t.Val
    		}
    		entry.Tags = tags
    		// ignore cases for ttfb when its zero.
    		if timeToFirstByte != 0 {
    			entry.API.TimeToFirstByte = strconv.FormatInt(timeToFirstByte.Nanoseconds(), 10) + "ns"
    			entry.API.TimeToFirstByteInNS = strconv.FormatInt(timeToFirstByte.Nanoseconds(), 10)
    		}
    	} else {
    		auditEntry := GetAuditEntry(ctx)
    		if auditEntry != nil {
    			entry = *auditEntry
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. internal/grid/trace.go

    				Headers:    nil,
    				StatusCode: status,
    				Body:       []byte(bytesOrLength(resp)),
    			},
    			CallStats: madmin.TraceCallStats{
    				InputBytes:      len(req),
    				OutputBytes:     len(resp),
    				TimeToFirstByte: end.Sub(start),
    			},
    		},
    	}
    	// If the context contains a TraceParamsKey, add it to the trace path.
    	v := ctx.Value(TraceParamsKey{})
    	// Should match SingleHandler.Call checks.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. 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 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top