-
Notifications
You must be signed in to change notification settings - Fork 228
Closed
Description
I'm getting an error in my Lambda when including the self-built lambda layer:
{
"errorMessage": "RequestId: 16cb64d6-a350-4939-8dd8-9148f8d934f1 Error: fork/exec /opt/extensions/opentelemetry-lambda-extension: no such file or directory",
"errorType": "Extension.LaunchError"
}
Steps:
- Makefile build
ZIP File of step1 has the content:
extensions/opentelemetry-lambda-extension
-
Makefile publish
Layer is created in the account + region -
adding layer to a lambda function with hello-world content with NodeJS Runtime 12
-
adding the
collector.yamlin the root of the function
content:
receivers:
otlp:
protocols:
grpc:
endpoint: localhost:55680
exporters:
awsxray:
awsemf:
service:
pipelines:
traces:
receivers: [otlp]
exporters: [awsxray]
metrics:
receivers: [otlp]
exporters: [awsemf]
-
setting env variable:
OPENTELEMETRY_COLLECTOR_CONFIG_FILE=/var/task/collector.yaml -
hit test
Metadata
Metadata
Assignees
Labels
No labels