Middleware
class Middleware
| internal |
Properties
| protected Transaction|null | $transaction | The current active transaction. |
|
| protected Span|null | $appSpan | The span for the |
Methods
Create a new tracing middleware instance.
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 52
__construct(bool $continueAfterResponse = true, bool $traceMissingRoutes = false)
Create a new tracing middleware instance.
at line 76
void
terminate(Request $request, Response $response)
Perform cleanup after the response has been sent.
When after-response tracing is enabled, a Coroutine::defer() registered in startTransaction() finishes the transaction after deferred work.
at line 108
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 116
static void
signalRouteWasMatched()
Signal that a route was matched for the current request.
at line 128
void
finishTransaction()
Finish the current transaction.
at line 298
static void
flushState()
Flush all static state.