kamon.instrumentation.http.HttpServerInstrumentation
Process a response to be sent back to the client.
Process a response to be sent back to the client. Since returning keys might need to included in the response headers, users of this class must ensure that the returned HttpResponse is used instead of the original one passed into this function.
Wraps the HTTP response to be sent back to the client.
Context that should be used for writing returning keys into the response.
The modified HTTP response that should be sent to clients.
If context propagation is enabled this function returns the incoming context associated wih this request,
otherwise Context.Empty
is returned.
If context propagation is enabled this function returns the incoming context associated wih this request,
otherwise Context.Empty
is returned. When tracing is enabled, this Context will already contain the HTTP
Server Span representing the current request.
Signals that the entire request (headers and body) has been received and records the size of the received payload.
Signals that the entire response (headers and body) has been sent to the client and records its size, if available.
Span representing the current HTTP server operation.
Span representing the current HTTP server operation. If tracing is disabled this will return an empty span.
Signals that the entire request (headers and body) has been received.
Signals that the entire response (headers and body) has been sent to the client.
Handler associated to the processing of a single request. The instrumentation code using this class is responsible of creating a dedicated
HttpServer.RequestHandler
instance for each received request and invoking the requestReceived, buildResponse and responseSent callbacks when appropriate.