Skip to content

Commit b425d17

Browse files
committed
add metrics for describe activity error path test
1 parent cc196ad commit b425d17

File tree

1 file changed

+33
-0
lines changed
  • appsignals-tests/contract-tests/src/test/java/software/amazon/opentelemetry/appsignals/test/awssdk/base

1 file changed

+33
-0
lines changed

appsignals-tests/contract-tests/src/test/java/software/amazon/opentelemetry/appsignals/test/awssdk/base/AwsSdkBaseTest.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,5 +2484,38 @@ protected void doTestStepFunctionsDescribeActivityError() throws Exception {
24842484
List.of(
24852485
assertAttribute(
24862486
SemanticConventionsConstants.AWS_ACTIVITY_ARN, "arn:aws:states:us-west-2:000000000000:activity:nonexistent-activity")));
2487+
assertMetricClientAttributes(
2488+
metrics,
2489+
AppSignalsConstants.LATENCY_METRIC,
2490+
localService,
2491+
localOperation,
2492+
getStepFunctionsServiceName(),
2493+
"DescribeActivity",
2494+
type,
2495+
identifier,
2496+
cloudformationIdentifier,
2497+
5000.0);
2498+
assertMetricClientAttributes(
2499+
metrics,
2500+
AppSignalsConstants.FAULT_METRIC,
2501+
localService,
2502+
localOperation,
2503+
getStepFunctionsServiceName(),
2504+
"DescribeActivity",
2505+
type,
2506+
identifier,
2507+
cloudformationIdentifier,
2508+
0.0);
2509+
assertMetricClientAttributes(
2510+
metrics,
2511+
AppSignalsConstants.ERROR_METRIC,
2512+
localService,
2513+
localOperation,
2514+
getStepFunctionsServiceName(),
2515+
"DescribeActivity",
2516+
type,
2517+
identifier,
2518+
cloudformationIdentifier,
2519+
1.0);
24872520
}
24882521
}

0 commit comments

Comments
 (0)