Skip to content

Commit 79081f8

Browse files
Rename EFD metrics constants to known tests
1 parent 61ffadd commit 79081f8

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

dd-java-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/config/ConfigurationApiImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ public Map<String, Collection<TestIdentifier>> getKnownTestsByModule(
248248
TracerEnvironment tracerEnvironment) throws IOException {
249249
OkHttpUtils.CustomListener telemetryListener =
250250
new TelemetryListener.Builder(metricCollector)
251-
.requestCount(CiVisibilityCountMetric.EFD_REQUEST)
252-
.requestErrors(CiVisibilityCountMetric.EFD_REQUEST_ERRORS)
253-
.requestDuration(CiVisibilityDistributionMetric.EFD_REQUEST_MS)
254-
.responseBytes(CiVisibilityDistributionMetric.EFD_RESPONSE_BYTES)
251+
.requestCount(CiVisibilityCountMetric.KNOWN_TESTS_REQUEST)
252+
.requestErrors(CiVisibilityCountMetric.KNOWN_TESTS_REQUEST_ERRORS)
253+
.requestDuration(CiVisibilityDistributionMetric.KNOWN_TESTS_REQUEST_MS)
254+
.responseBytes(CiVisibilityDistributionMetric.KNOWN_TESTS_RESPONSE_BYTES)
255255
.build();
256256

257257
String uuid = uuidGenerator.get();
@@ -293,7 +293,7 @@ private Map<String, Collection<TestIdentifier>> parseTestIdentifiers(KnownTestsD
293293
}
294294

295295
LOGGER.debug("Received {} known tests in total", knownTestsCount);
296-
metricCollector.add(CiVisibilityDistributionMetric.EFD_RESPONSE_TESTS, knownTestsCount);
296+
metricCollector.add(CiVisibilityDistributionMetric.KNOWN_TESTS_RESPONSE_TESTS, knownTestsCount);
297297
return knownTestsCount > 0
298298
? testIdentifiers
299299
// returning null if there are no known tests:

internal-api/src/main/java/datadog/trace/api/civisibility/telemetry/CiVisibilityCountMetric.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ public enum CiVisibilityCountMetric {
132132
*/
133133
ITR_FORCED_RUN("itr_forced_run", EventType.class),
134134
/** The number of requests sent to the known tests endpoint */
135-
EFD_REQUEST("known_tests.request", RequestCompressed.class),
135+
KNOWN_TESTS_REQUEST("known_tests.request", RequestCompressed.class),
136136
/** The number of known tests requests sent to the known tests endpoint that errored */
137-
EFD_REQUEST_ERRORS("known_tests.request_errors", ErrorType.class, StatusCode.class),
137+
KNOWN_TESTS_REQUEST_ERRORS("known_tests.request_errors", ErrorType.class, StatusCode.class),
138138
/** The number of requests sent to the flaky tests endpoint */
139139
FLAKY_TESTS_REQUEST("flaky_tests.request", RequestCompressed.class),
140140
/** The number of tests requests sent to the flaky tests endpoint that errored */

internal-api/src/main/java/datadog/trace/api/civisibility/telemetry/CiVisibilityDistributionMetric.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public enum CiVisibilityDistributionMetric {
4040
/** The number of files covered inside a coverage payload */
4141
CODE_COVERAGE_FILES("code_coverage.files"),
4242
/* The time it takes to get the response of the known tests endpoint request in ms */
43-
EFD_REQUEST_MS("known_tests.request_ms"),
43+
KNOWN_TESTS_REQUEST_MS("known_tests.request_ms"),
4444
/** The number of bytes received by the known tests endpoint */
45-
EFD_RESPONSE_BYTES("known_tests.response_bytes", ResponseCompressed.class),
45+
KNOWN_TESTS_RESPONSE_BYTES("known_tests.response_bytes", ResponseCompressed.class),
4646
/** The number of tests received by the known tests endpoint */
47-
EFD_RESPONSE_TESTS("known_tests.response_tests"),
47+
KNOWN_TESTS_RESPONSE_TESTS("known_tests.response_tests"),
4848
/** The time it takes to get the response of the flaky tests endpoint request in ms */
4949
FLAKY_TESTS_REQUEST_MS("flaky_tests.request_ms"),
5050
/** The number of bytes received by the flaky tests endpoint */

0 commit comments

Comments
 (0)