Package brave.rpc
Class RpcClientRequest
- java.lang.Object
-
- brave.Request
-
- brave.rpc.RpcRequest
-
- brave.rpc.RpcClientRequest
-
public abstract class RpcClientRequest extends RpcRequest
Marks an interface for use inRpcClientHandler.handleSend(RpcClientRequest). This gives a standard type to consider when parsing an outgoing context.- Since:
- 5.8
- See Also:
RpcClientResponse
-
-
Constructor Summary
Constructors Constructor Description RpcClientRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidpropagationField(String keyName, String value)Sets a propagation field with the indicated name.brave.Span.KindspanKind()-
Methods inherited from class brave.rpc.RpcRequest
method, parseRemoteIpAndPort, service, startTimestamp
-
-
-
-
Method Detail
-
spanKind
public final brave.Span.Kind spanKind()
- Specified by:
spanKindin classbrave.Request
-
propagationField
protected void propagationField(String keyName, String value)
Sets a propagation field with the indicated name.nullvalues are unsupported.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.Setter.put(R, K, java.lang.String)value- value used forPropagation.Setter.put(R, K, java.lang.String)- Since:
- 5.12
- See Also:
SETTER,Propagation.keys(),BaggagePropagation.allKeyNames(Propagation)
-
-