File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
localstack-core/localstack/services/stepfunctions Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 6
6
import time
7
7
from typing import Final , Optional
8
8
9
+ import localstack .services .stepfunctions .usage as UsageMetrics
9
10
from localstack .aws .api import CommonServiceException , RequestContext
10
11
from localstack .aws .api .stepfunctions import (
11
12
ActivityDoesNotExist ,
@@ -789,6 +790,10 @@ def start_execution(
789
790
state_machine_arn_parts [1 ] if len (state_machine_arn_parts ) == 2 else None
790
791
)
791
792
793
+ # Count metrics about the execution type.
794
+ is_mock_test_case : bool = mock_test_case_name is not None
795
+ UsageMetrics .execution_type_counter .labels (is_mock_test_case = is_mock_test_case ).increment ()
796
+
792
797
store = self .get_store (context = context )
793
798
794
799
alias : Optional [Alias ] = store .aliases .get (state_machine_arn )
Original file line number Diff line number Diff line change 10
10
name = "language_features_used" ,
11
11
labels = ["query_language" , "uses_variables" ],
12
12
)
13
+
14
+ # Initialize a counter to record the use of each execution type.
15
+ execution_type_counter = Counter (
16
+ namespace = "stepfunctions" , name = "execution_type" , labels = ["is_mock_test_case" ]
17
+ )
You can’t perform that action at this time.
0 commit comments