Package brave.rpc

Class RpcServerRequest

    • Constructor Detail

      • RpcServerRequest

        public RpcServerRequest()
    • Method Detail

      • spanKind

        public final brave.Span.Kind spanKind()
        Specified by:
        spanKind in class brave.Request
      • propagationField

        @Nullable
        protected String propagationField​(String keyName)
        Returns one value corresponding to the specified propagation 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 injecting a trace context as internally implemented by RpcClientHandler. 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 for Propagation.Getter.get(Object, Object)
        Since:
        5.12
        See Also:
        GETTER, Propagation.keys(), BaggagePropagation.allKeyNames(Propagation)