Comments (1)
Hey @iamcristos !
This sounds like an interesting use case. I went online and found this blog post in the "Copy the contents of a Lambda layer into a container image" section which discusses steps that I think will be helpful to you.
For example, if you are using OTel Python Container images, you would want the OTel Python Lambda Layer ARN. Then, you could do
curl $(aws lambda get-layer-version-by-arn --arn arn:aws:lambda:us-west-2:901920570463:layer:aws-otel-python38-ver-1-7-1:1 --query 'Content.Location' --output text) --output layer.zip
to get the contents of the Lambda Layer and add them to your Lambda function.
Another solution is to create the Lambda function with the Docker Image, and then use the aws
cli afterwards to add the Lambda Layer. This is also explained in the blog post.
aws lambda create-function --region us-east-1 --function-name my-function \
--role arn:aws:iam::123456789012:role/lambda-role \
--layers \
"arn:aws:lambda:us-west-2:901920570463:layer:aws-otel-python38-ver-1-7-1:1" \
Otherwise, if you were looking for a setting that added it at once in the Docker Image it seems that the Docker Images don't support that. If that is a feature you want to request I recommend looking at the aws-lambda-base-images GitHub Repository where you can voice your use case 🙂
Hope that helps!
from aws-otel-community.
Related Issues (20)
- Migration from v0.88.0-eksbuild calcifications HOT 32
- Not getting AWS Lambda service and the AWS Lambda function trace in custom OTEL collector
- Spring mongo traces not generated
- Not able to add the Lambda layer HOT 1
- Cannot send log signal to ADOT Collector in EKS
- Documentation issue - .NET links have moved to new repo HOT 1
- .NET framework versions issues HOT 1
- Adding a Sample Example for FAST API Instrumentation in sample-apps folder HOT 1
- scrape_interval configuration to be updated while creating ADOT add on in EKS HOT 3
- Support for JavaScript auto-instrumentation HOT 1
- Build sample applications at PR Build TIme
- Manual tracing for auto-instrumentation-enabled Lambda fuctions HOT 7
- Service name is too arbitrary HOT 3
- attributes processor in ADOT lambda layer HOT 7
- Prevent AMP from collecting EKS cluster metrics (30$ per day)
- How to execute command within aws-otel-collector container such as shell commands to get information inside the container? HOT 1
- opentelemetry-operator-webhook-service HOT 1
- error 403 forbidden
- ADOT Collector/instrumentation not creating X-Ray spans on ECS Fargate, NodeJS app HOT 1
- Adding processors to the configuration-values.json file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-otel-community.