pkgsite/internal/log
Jonathan Amsterdam df601fe449 internal/middleware,etc.: store requests
This CL provides several improvements to the worker home page:

- Display all requests, not just fetches.

- Link to the logs for each request.

- Link that will cancel a request.

At the heart of these changes is a new piece of middleware that tracks
all active requests, along with their trace ID and a function that
can be used to cancel them.

This change also affects logging, because the logger doesn't need to
maintain its own trace ID.

Change-Id: Id022170073d2d7ca4e45aaa1d78b216d8a512f35
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/568236
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
kokoro-CI: kokoro <noreply+kokoro@google.com>
2024-03-01 15:36:33 +00:00
..
stackdriverlogger internal/middleware,etc.: store requests 2024-03-01 15:36:33 +00:00
log.go
log_test.go