Middleware
class Middleware
| internal |
Properties
| protected Transaction|null | $transaction | The current active transaction. |
|
| protected Span|null | $appSpan | The span for the |
Methods
Set the timestamp of application bootstrap completion.
Signal that a route was matched for the current request.
Finish the current transaction.
Flush all static state.
Details
at line 70
void
terminate(Request $request, Response $response)
Perform cleanup after the response has been sent.
The transaction is not finished here — it stays open to capture spans created by after-response work (e.g. dispatchAfterResponse). A Coroutine::defer() registered in startTransaction() finishes the transaction when the coroutine exits, after all deferred work completes.
at line 98
static void
setBootedTimestamp(float|null $timestamp = null)
| internal | this method should only be invoked right after the application has finished "booting" |
Set the timestamp of application bootstrap completion.
Boot-only. Sets a process-wide static used by the first-request boot span. Runtime use would race across coroutines.
at line 106
static void
signalRouteWasMatched()
Signal that a route was matched for the current request.
at line 118
void
finishTransaction()
Finish the current transaction.
at line 289
static void
flushState()
Flush all static state.