Class RequestAwareGRpcMetricsTagsContributor<ReqT>
- java.lang.Object
-
- org.lognet.springboot.grpc.autoconfigure.metrics.RequestAwareGRpcMetricsTagsContributor<ReqT>
-
- All Implemented Interfaces:
GRpcMetricsTagsContributor
public abstract class RequestAwareGRpcMetricsTagsContributor<ReqT> extends java.lang.Object implements GRpcMetricsTagsContributor
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRequestAwareGRpcMetricsTagsContributor(java.lang.Class<ReqT> tClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaccepts(java.lang.Object o)java.lang.Iterable<io.micrometer.core.instrument.Tag>getTags(io.grpc.Status status, io.grpc.MethodDescriptor<?,?> methodDescriptor, io.grpc.Attributes attributes)abstract java.lang.Iterable<io.micrometer.core.instrument.Tag>getTags(ReqT request, io.grpc.MethodDescriptor<?,?> methodDescriptor, io.grpc.Attributes attributes)
-
-
-
Constructor Detail
-
RequestAwareGRpcMetricsTagsContributor
protected RequestAwareGRpcMetricsTagsContributor(java.lang.Class<ReqT> tClass)
-
-
Method Detail
-
accepts
public final boolean accepts(java.lang.Object o)
-
getTags
public java.lang.Iterable<io.micrometer.core.instrument.Tag> getTags(io.grpc.Status status, io.grpc.MethodDescriptor<?,?> methodDescriptor, io.grpc.Attributes attributes)- Specified by:
getTagsin interfaceGRpcMetricsTagsContributor
-
getTags
public abstract java.lang.Iterable<io.micrometer.core.instrument.Tag> getTags(ReqT request, io.grpc.MethodDescriptor<?,?> methodDescriptor, io.grpc.Attributes attributes)
-
-