Class OkHttpMetricsEventListener.Builder

    • Method Detail

      • requestTagKeys

        public OkHttpMetricsEventListener.Builder requestTagKeys​(java.lang.String... requestTagKeys)
        Tag keys for Request.tag() or Request.tag(Class). These keys will be added with UNKNOWN values when Request is null. Note that this is required only for Prometheus as it requires tag match for the same metric.
        Parameters:
        requestTagKeys - request tag keys
        Returns:
        this builder
        Since:
        1.3.9
      • requestTagKeys

        public OkHttpMetricsEventListener.Builder requestTagKeys​(java.lang.Iterable<java.lang.String> requestTagKeys)
        Tag keys for Request.tag() or Request.tag(Class). These keys will be added with UNKNOWN values when Request is null. Note that this is required only for Prometheus as it requires tag match for the same metric.
        Parameters:
        requestTagKeys - request tag keys
        Returns:
        this builder
        Since:
        1.3.9