Skip to content

Commit e5bb66c

Browse files
committed
Handle runtime None values for async invokes
1 parent a39fb91 commit e5bb66c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

localstack-core/localstack/services/lambda_/invocation/event_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def handle_message(self, message: dict) -> None:
209209
function_config = self.version_manager.function_version.config
210210
function_counter.labels(
211211
operation=FunctionOperation.invoke,
212-
runtime=function_config.runtime,
212+
runtime=function_config.runtime or "n/a",
213213
status=FunctionStatus.success,
214214
invocation_type=InvocationType.Event,
215215
package_type=function_config.package_type,
@@ -244,7 +244,7 @@ def handle_message(self, message: dict) -> None:
244244
package_type = self.version_manager.function_version.config.package_type
245245
function_counter.labels(
246246
operation=FunctionOperation.invoke,
247-
runtime=runtime,
247+
runtime=runtime or "n/a",
248248
status=status,
249249
invocation_type=InvocationType.Event,
250250
package_type=package_type,

0 commit comments

Comments
 (0)