Project

General

Profile

Actions

Feature #21599

open

_inspect/requests endpoint should reveal whether each request is queued or active

Added by Tom Clegg 7 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assigned To:
Category:
API
Target version:
Story points:
-

Description

This is a little inconvenient because the queue decision happens lower in the handler stack than the inspector (and we don't want to change that).

We can do something similar to responseLogFieldsContextKey in source:sdk/go/httpserver/logger.go -- attach an atomic.Value to the request context as it passes through the Inspect handler, then have RequestLimiter Store() queue status there (queue label, time the request was released for processing), and Load() when generating the _inspect/requests report.

Actions #1

Updated by Peter Amstutz 5 months ago

  • Target version set to Future
Actions

Also available in: Atom PDF