Package brave.http

Class HttpRuleSampler.Builder

    • Method Detail

      • addRule

        public HttpRuleSampler.Builder addRule​(@Nullable
                                               String method,
                                               String path,
                                               float rate)
        Assigns a sample rate to all requests that match the input.
        Parameters:
        method - if null, any method is accepted
        path - all paths starting with this string are accepted
        rate - percentage of requests to start traces for. 1.0 is 100%