Package brave.rpc
Class RpcServerRequest
- java.lang.Object
-
- brave.Request
-
- brave.rpc.RpcRequest
-
- brave.rpc.RpcServerRequest
-
public abstract class RpcServerRequest extends RpcRequest
Marks an interface for use inRpcServerHandler.handleReceive(RpcServerRequest). This gives a standard type to consider when parsing an incoming context.- Since:
- 5.8
- See Also:
RpcServerResponse
-
-
Constructor Summary
Constructors Constructor Description RpcServerRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringpropagationField(String keyName)Returns one value corresponding to the specifiedpropagation field, or null.Span.KindspanKind()-
Methods inherited from class brave.rpc.RpcRequest
method, parseRemoteIpAndPort, service, startTimestamp
-
-
-
-
Method Detail
-
propagationField
@Nullable protected String propagationField(String keyName)
Returns one value corresponding to the specifiedpropagation field, or null.Note: Header based requests will use headers, but this could be read from RPC envelopes or even binary data.
Notes
This is only used when
injectinga trace context as internally implemented byRpcClientHandler. Calls during sampling or parsing are invalid and may be ignored by instrumentation.Header based requests will use headers, but this could set RPC envelopes or even binary data.
- Parameters:
keyName- key used forPropagation.Getter.get(Object, Object)- Since:
- 5.12
- See Also:
GETTER,Propagation.keys(),BaggagePropagation.allKeyNames(Propagation)
-
-