Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shouldTrace (0.2 sec)

  1. cmd/admin-handlers.go

    // - input entry is not of the type *madmin.TraceInfo*
    // - errOnly entries are to be traced, not status code 2xx, 3xx.
    // - madmin.TraceInfo type is asked by opts
    func shouldTrace(trcInfo madmin.TraceInfo, opts madmin.ServiceTraceOpts) (shouldTrace bool) {
    	// Reject all unwanted types.
    	want := opts.TraceTypes()
    	if !want.Contains(trcInfo.TraceType) {
    		return false
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  2. cmd/peer-rest-server.go

    	// Use buffered channel to take care of burst sends or slow w.Write()
    	err = globalTrace.SubscribeJSON(traceOpts.TraceTypes(), out, ctx.Done(), func(entry madmin.TraceInfo) bool {
    		return shouldTrace(entry, traceOpts)
    	}, &wg)
    	if err != nil {
    		return grid.NewRemoteErr(err)
    	}
    
    	// Publish bootstrap events that have already occurred before client could subscribe.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
Back to top