Proof of concept using aws-lambda-go and OpenTelemetry.
This may interest you if you use AWS, Lambdas, Golang, and OpenTelemetry … or if you're looking to emulate AppSync Serverless GraphQL locally and do not wish to pay for a LocalStack license.
All you need is Docker and pkgx.
pkgx task@latest run
pkgx awslocal@latest \
lambda invoke \
--function-name my-lambda \
--cli-binary-format raw-in-base64-out \
--payload '{"body": "{\"id\": \"10\"}" }' \
output.txt
pkgx http \
http://localhost:4566/2015-03-31/functions/my-lambda/invocations \
id="4"
mutation {
invokeLambda(input: {id: "1"}) {
id
}
}
Open the Jaeger UI.
- ADOT: Do we need to use the AWS Distro of OTel Collector?
The default OTel env vars should be fine.
See their “OTLP Exporter Configuration” guide.