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
ConstructorDescriptionGrpcClientObservationContext
(io.micrometer.observation.transport.Propagator.Setter<io.grpc.Metadata> setter) -
Method Summary
Modifier and TypeMethodDescriptionio.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
-
setServiceName
-
getMethodName
-
setMethodName
-
getFullMethodName
-
setFullMethodName
-
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
-
setAuthority
-