You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading a Lambda Function that previously ran fine with Instana layer version 61 to 62 or above the execution fails with the error Unable to import module 'instana': No module named 'opentelemetry'
Minimal, Complete, Verifiable, Example
Create an AWS Lambda Function with Python 3.12 / arm64 and the following code:
Set the handler to instana.lambda_handler and add the layer with the ARN arn:aws:lambda:eu-central-1:410797082306:layer:instana-python:62
Configure the following environment variables:
INSTANA_AGENT_KEY=test-agent-key
INSTANA_ENDPOINT_URL=https://serverless-blue-saas.instana.io
LAMBDA_HANDLER=app.handler
LAMBDA_TIMEOUT=30
Try to execute the Lambda and it will fail with Unable to import module 'instana': No module named 'opentelemetry'
Python Version
3.12
Python Modules
Standard Lambda Python 3.12 environment without any additional packages
Problem Description
When upgrading a Lambda Function that previously ran fine with Instana layer version 61 to 62 or above the execution fails with the error
Unable to import module 'instana': No module named 'opentelemetry'
Minimal, Complete, Verifiable, Example
Create an AWS Lambda Function with Python 3.12 / arm64 and the following code:
Set the handler to
instana.lambda_handler
and add the layer with the ARNarn:aws:lambda:eu-central-1:410797082306:layer:instana-python:62
Configure the following environment variables:
INSTANA_AGENT_KEY=test-agent-key
INSTANA_ENDPOINT_URL=https://serverless-blue-saas.instana.io
LAMBDA_HANDLER=app.handler
LAMBDA_TIMEOUT=30
Try to execute the Lambda and it will fail with
Unable to import module 'instana': No module named 'opentelemetry'
Python Version
3.12
Python Modules
Python Environment
The text was updated successfully, but these errors were encountered: