Package brave

Class Request

    • Constructor Detail

      • Request

        protected Request()
    • Method Detail

      • spanKind

        public abstract Span.Kind spanKind()
        The remote Span.Kind describing the direction and type of the request.
      • unwrap

        public abstract Object unwrap()
        Returns the underlying request object or null if there is none. Here are some request objects: org.apache.http.HttpRequest, org.apache.dubbo.rpc.Invocation, org.apache.kafka.clients.consumer.ConsumerRecord.

        Note: Some implementations are composed of multiple types, such as a request and a socket address of the client. Moreover, an implementation may change the type returned due to refactoring. Unless you control the implementation, cast carefully (ex using instanceof) instead of presuming a specific type will always be returned.

        Since:
        5.9