Class GrpcClientObservationContext

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

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

    Constructors
    Constructor
    Description
    GrpcClientObservationContext(io.micrometer.observation.transport.Propagator.Setter<io.grpc.Metadata> setter)
     
  • 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.RequestReplySenderContext

    getResponse, setResponse

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

    getCarrier, getKind, getRemoteServiceAddress, getRemoteServiceName, getSetter, 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

    • GrpcClientObservationContext

      public GrpcClientObservationContext(io.micrometer.observation.transport.Propagator.Setter<io.grpc.Metadata> setter)
  • 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

      public String getAuthority()
    • setAuthority

      public void setAuthority(String authority)