Skip to content

Commit cc196ad

Browse files
committed
add in metrics assertions to describe activity happy path test
1 parent d6a3f40 commit cc196ad

File tree

1 file changed

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

1 file changed

+33
-1
lines changed

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

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,39 @@ protected void doTestStepFunctionsDescribeActivity() throws Exception {
24162416
assertAttribute(
24172417
SemanticConventionsConstants.AWS_ACTIVITY_ARN,
24182418
"arn:aws:states:us-west-2:000000000000:activity:test-activity")));
2419-
2419+
assertMetricClientAttributes(
2420+
metrics,
2421+
AppSignalsConstants.LATENCY_METRIC,
2422+
localService,
2423+
localOperation,
2424+
getStepFunctionsServiceName(),
2425+
"DescribeActivity",
2426+
type,
2427+
identifier,
2428+
cloudformationIdentifier,
2429+
5000.0);
2430+
assertMetricClientAttributes(
2431+
metrics,
2432+
AppSignalsConstants.FAULT_METRIC,
2433+
localService,
2434+
localOperation,
2435+
getStepFunctionsServiceName(),
2436+
"DescribeActivity",
2437+
type,
2438+
identifier,
2439+
cloudformationIdentifier,
2440+
0.0);
2441+
assertMetricClientAttributes(
2442+
metrics,
2443+
AppSignalsConstants.ERROR_METRIC,
2444+
localService,
2445+
localOperation,
2446+
getStepFunctionsServiceName(),
2447+
"DescribeActivity",
2448+
type,
2449+
identifier,
2450+
cloudformationIdentifier,
2451+
0.0);
24202452
}
24212453

24222454
protected void doTestStepFunctionsDescribeActivityError() throws Exception {

0 commit comments

Comments
 (0)