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 inRpcTracing
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface brave.rpc.RpcResponseParser
RpcResponseParser.Default
-
-
Field Summary
-
Fields inherited from interface brave.rpc.RpcResponseParser
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description GrpcParser()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods 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.
-
-
-
Method Detail
-
parse
public void parse(RpcResponse response, TraceContext context, SpanCustomizer span)
Deprecated.- Specified by:
parse
in interfaceRpcResponseParser
-
errorParser
@Deprecated protected ErrorParser errorParser()
Deprecated.This is only used in Zipkin reporting. Since 5.12, useZipkinSpanHandler.Builder.errorTag(Tag)
-
spanName
protected <ReqT,RespT> String spanName(io.grpc.MethodDescriptor<ReqT,RespT> methodDescriptor)
Deprecated.Returns the span name of the request. Defaults to the full grpc method name.
-
onClose
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.Note:
Status.getCause()
will be set asSpan.error(Throwable)
by default. You don't need to parse it here.
-
-