Skip to content

Commit 3ebe18e

Browse files
committed
[Adaptive Sampling] Improve trace capturing and counting using cache
1 parent 931abc2 commit 3ebe18e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

awsagentprovider/src/test/java/software/amazon/opentelemetry/javaagent/providers/AwsApplicationSignalsCustomizerProviderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void setAdaptiveSamplingConfigFromFile_validYaml()
8181
// Assert the configuration was parsed correctly
8282
assertThat(config).isNotNull();
8383
assertThat(config.getVersion()).isEqualTo(1);
84-
assertThat(config.getErrorCaptureLimit().getErrorSpansPerSecond()).isEqualTo(10);
84+
assertThat(config.getAnomalyCaptureLimit().getAnomalyTracesPerSecond()).isEqualTo(10);
8585
}
8686

8787
@Test

awsagentprovider/src/test/resources/adaptive-sampling-config-invalid.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ anomalyConditions:
99
- errorCodeRegex: "^2\\d\\d$"
1010
operations: invalid part of config
1111
usage: both
12-
errorCaptureLimit:
13-
errorSpansPerSecond: 10
12+
anomalyCaptureLimit:
13+
anomalyTracesPerSecond: 10

awsagentprovider/src/test/resources/adaptive-sampling-config-valid.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ anomalyConditions:
88
usage: both
99
- errorCodeRegex: "^2\\d\\d$"
1010
usage: both
11-
errorCaptureLimit:
12-
errorSpansPerSecond: 10
11+
anomalyCaptureLimit:
12+
anomalyTracesPerSecond: 10

0 commit comments

Comments
 (0)