Class ServerRequestObservationContext

java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.ReceiverContext<C>
io.micrometer.observation.transport.RequestReplyReceiverContext<io.micronaut.http.HttpRequest<?>,io.micronaut.http.MutableHttpResponse<?>>
io.micronaut.micrometer.observation.http.server.instrumentation.ServerRequestObservationContext
All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView, io.micrometer.observation.transport.ResponseContext<io.micronaut.http.MutableHttpResponse<?>>

@Internal public final class ServerRequestObservationContext extends io.micrometer.observation.transport.RequestReplyReceiverContext<io.micronaut.http.HttpRequest<?>,io.micronaut.http.MutableHttpResponse<?>>
Context that holds information for metadata collection regarding Server HTTP requests observations.

This context also extends RequestReplyReceiverContext for propagating observation information during HTTP request processing.

  • Constructor Summary

    Constructors
    Constructor
    Description
    ServerRequestObservationContext(io.micronaut.http.HttpRequest<?> request)
     
  • Method Summary

    Methods inherited from class io.micrometer.observation.transport.RequestReplyReceiverContext

    getResponse, setResponse

    Methods inherited from class io.micrometer.observation.transport.ReceiverContext

    getCarrier, getGetter, getKind, getRemoteServiceAddress, getRemoteServiceName, setCarrier, setRemoteServiceAddress, setRemoteServiceName

    Methods inherited from class io.micrometer.observation.Observation.Context

    addHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValue, getHighCardinalityKeyValues, getLowCardinalityKeyValue, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, removeHighCardinalityKeyValue, removeHighCardinalityKeyValues, removeLowCardinalityKeyValue, removeLowCardinalityKeyValues, setContextualName, setError, setName, setParentObservation, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.micrometer.observation.Observation.ContextView

    getOrDefault
  • Constructor Details

    • ServerRequestObservationContext

      public ServerRequestObservationContext(io.micronaut.http.HttpRequest<?> request)