Bug 65064

Summary: Enhancement request: InfluxDBListenerClient: Return response codes in all scenarios, not just errors
Product: JMeter - Now in Github Reporter: Niall Ward <niall_ward>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEEDINFO ---    
Severity: enhancement CC: p.mouawad
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Niall Ward 2021-01-07 10:14:05 UTC
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?
Comment 1 Felix Schumacher 2021-03-06 09:41:34 UTC
I think that is possible, but I don't use that listener myself, so it would probably good to discuss this change on the dev or users mailing list first.
Comment 2 The ASF infrastructure team 2022-09-24 20:38:21 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5482