https://bz.apache.org/bugzilla/show_bug.cgi?id=65064

            Bug ID: 65064
           Summary: Enhancement request: InfluxDBListenerClient: Return
                    response codes in all scenarios, not just errors
           Product: JMeter
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: JMETER 5.4.1

Hi

Currently the InfluxDBBackendListenerClient does not report the request
response codes, except in the context of errors:

 private void addErrorMetric(String transaction, ErrorMetric err, long count) {
        if (count <= 0) {
            return;
        }
        StringBuilder tag = new StringBuilder(70);
        tag.append(TAG_APPLICATION).append(applicationName);
        tag.append(TAG_TRANSACTION).append(transaction);
       
tag.append(TAG_RESPONSE_CODE).append(AbstractInfluxdbMetricsSender.tagToStringValue(err.getResponseCode()));
       
tag.append(TAG_RESPONSE_MESSAGE).append(AbstractInfluxdbMetricsSender.tagToStringValue(err.getResponseMessage()));
        tag.append(userTag);

        StringBuilder field = new StringBuilder(30);
        field.append(METRIC_COUNT).append(count);
        influxdbMetricsManager.addMetric(measurement, tag.toString(),
field.toString());
    }

Could this behaviour be changed so that the response codes are reported in all
instances?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to