Enhancement request: InfluxDBListenerClient: Return response codes in all scenarios, not just errors
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
**Niall Ward** ([Bug 65064](https://bz.apache.org/bugzilla//show_bug.cgi?id=65064&redirect=false)):
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?
OS: All
Contributor guide
Assessment
This issue has not been assessed yet.