Class GrpcServerObservationContext

java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.ReceiverContext<io.grpc.Metadata>
io.micrometer.observation.transport.RequestReplyReceiverContext<io.grpc.Metadata,Object>
io.micrometer.core.instrument.binder.grpc.GrpcServerObservationContext
All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView, io.micrometer.observation.transport.ResponseContext<Object>

public class GrpcServerObservationContext extends io.micrometer.observation.transport.RequestReplyReceiverContext<io.grpc.Metadata,Object>
Observation.Context for gRPC server.
Since:
1.10.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    GrpcServerObservationContext(io.micrometer.observation.transport.Propagator.Getter<io.grpc.Metadata> getter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    io.grpc.MethodDescriptor.MethodType
     
     
    io.grpc.Status.Code
     
    void
    setAuthority(String authority)
     
    void
    setFullMethodName(String fullMethodName)
     
    void
    setMethodName(String methodName)
     
    void
    setMethodType(io.grpc.MethodDescriptor.MethodType methodType)
     
    void
    setServiceName(String serviceName)
     
    void
    setStatusCode(io.grpc.Status.Code statusCode)
     

    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

    • GrpcServerObservationContext

      public GrpcServerObservationContext(io.micrometer.observation.transport.Propagator.Getter<io.grpc.Metadata> getter)
  • Method Details

    • getServiceName

      public String getServiceName()
    • setServiceName

      public void setServiceName(String serviceName)
    • getMethodName

      public String getMethodName()
    • setMethodName

      public void setMethodName(String methodName)
    • getFullMethodName

      public String getFullMethodName()
    • setFullMethodName

      public void setFullMethodName(String fullMethodName)
    • getMethodType

      public io.grpc.MethodDescriptor.MethodType getMethodType()
    • setMethodType

      public void setMethodType(io.grpc.MethodDescriptor.MethodType methodType)
    • getStatusCode

      @Nullable public io.grpc.Status.Code getStatusCode()
    • setStatusCode

      public void setStatusCode(io.grpc.Status.Code statusCode)
    • getAuthority

      @Nullable public String getAuthority()
    • setAuthority

      public void setAuthority(@Nullable String authority)