Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for HandleErrorWithContext (0.28 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    // This variant should be used instead of HandleError because it supports
    // structured, contextual logging.
    func HandleErrorWithContext(ctx context.Context, err error, msg string, keysAndValues ...interface{}) {
    	handleError(ctx, err, msg, keysAndValues...)
    }
    
    // handleError is the common implementation of HandleError and HandleErrorWithContext.
    // Using this common implementation ensures that the stack depth
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_stack_test.go

    	// The line number of the next call must be at line 60. Here are some
    	// blank lines that can be removed to keep the line unchanged.
    	//
    	//
    	//
    	//
    	//
    	//
    	HandleErrorWithContext(ctx, errors.New("fake error"), "test")
    
    	klog.Flush()
    	// Strip varying header. Code location should be constant and something
    	// that needs to be tested.
    	output := buffer.String()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go

    			// in case the rate limit delays it.  If you outrun the rate for this one timed out requests, something has gone
    			// seriously wrong with your server, but generally having a logging signal for timeouts is useful.
    			runtime.HandleErrorWithContext(req.Context(), nil, "Timeout or abort while handling", "method", req.Method, "URI", req.RequestURI, "auditID", audit.GetAuditIDTruncated(req.Context()))
    			return
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go

    					// a non nil res indicates that there was a panic.
    					status = metrics.PostTimeoutHandlerPanic
    				}
    
    				metrics.RecordRequestPostTimeout(metrics.PostTimeoutSourceTimeoutHandler, status)
    				utilruntime.HandleErrorWithContext(r.Context(), nil, "Post-timeout activity", "timeElapsed", time.Since(timedOutAt), "method", r.Method, "path", r.URL.Path, "result", res)
    			}()
    		}()
    		httplog.SetStacktracePredicate(r.Context(), func(status int) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top