Package brave.grpc
Class GrpcParser
java.lang.Object
brave.grpc.GrpcParser
- All Implemented Interfaces:
RpcResponseParser
- Direct Known Subclasses:
GrpcClientParser
,GrpcServerParser
@Deprecated public class GrpcParser extends Object implements RpcResponseParser
Deprecated.
Since 5.12 use parsers in
RpcTracing
.-
Nested Class Summary
Nested classes/interfaces inherited from interface brave.rpc.RpcResponseParser
RpcResponseParser.Default
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GrpcParser()
Deprecated. -
Method Summary
Modifier and Type Method Description protected ErrorParser
errorParser()
Deprecated.This is only used in Zipkin reporting.protected void
onClose(io.grpc.Status status, io.grpc.Metadata trailers, SpanCustomizer span)
Deprecated.Override to change what data from the status or trailers are parsed into the span modeling it.void
parse(RpcResponse response, TraceContext context, SpanCustomizer span)
Deprecated.protected <ReqT, RespT>
StringspanName(io.grpc.MethodDescriptor<ReqT,RespT> methodDescriptor)
Deprecated.Returns the span name of the request.
-
Constructor Details
-
GrpcParser
public GrpcParser()Deprecated.
-
-
Method Details
-
parse
Deprecated.- Specified by:
parse
in interfaceRpcResponseParser
-
errorParser
Deprecated.This is only used in Zipkin reporting. Since 5.12, useZipkinSpanHandler.Builder.errorTag(Tag)
-
spanName
Deprecated.Returns the span name of the request. Defaults to the full grpc method name. -
onClose
Deprecated.Override to change what data from the status or trailers are parsed into the span modeling it.Note:
Status.getCause()
will be set asSpan.error(Throwable)
by default. You don't need to parse it here.
-