Closed juanitosvq closed 1 month ago
Hi, I noticed that the spec has an attribute faas.max_memory that describes the memory assigned to the lambda function: https://opentelemetry.io/docs/reference/specification/resource/semantic_conventions/faas/
faas.max_memory
I wasn't able to find that attribute in our traces when using the otel layer. I believe it would just be a matter of updating this: https://github.com/open-telemetry/opentelemetry-lambda/blob/main/python/src/otel/otel_sdk/otel-instrument#L130 to include AWS_LAMBDA_FUNCTION_MEMORY_SIZE, since this should already be available on runtime: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime
AWS_LAMBDA_FUNCTION_MEMORY_SIZE
I'll be happy to open a PR if this makes sense.
Thanks!
This issue was marked stale. It will be closed in 30 days without additional activity.
Closed as inactive. Feel free to reopen if this issue is still relevant.
Hi, I noticed that the spec has an attribute
faas.max_memory
that describes the memory assigned to the lambda function: https://opentelemetry.io/docs/reference/specification/resource/semantic_conventions/faas/I wasn't able to find that attribute in our traces when using the otel layer. I believe it would just be a matter of updating this: https://github.com/open-telemetry/opentelemetry-lambda/blob/main/python/src/otel/otel_sdk/otel-instrument#L130 to include
AWS_LAMBDA_FUNCTION_MEMORY_SIZE
, since this should already be available on runtime: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtimeI'll be happy to open a PR if this makes sense.
Thanks!