awslabs / awslabs/aws-embedded-metrics-python

greengrass lambda does not register as a lambda environment

Open
#48 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
231
Forks
44
PR merge metrics
No merged PRs in 30d

Description

The following line determines if the code is running as a lambda:
https://github.com/awslabs/aws-embedded-metrics-python/blob/658b2ebe829853a0ad53675d4b9d8917f7de18b7/aws_embedded_metrics/environment/lambda_environment.py#L32

Unfortunately the environment variables for lambdas are not provided by greengrass' version of lambdas. This means my aws-embedded-metrics agent attempted TCL connections from my greengrass lambda and was failing until I manually added AWS_LAMBDA_FUNCTION_NAME as an env variable with the function name.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.