AWS ADOT Java Lambda Not Sending Data to OTEL Collector #7180
Unanswered
papystanny
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm working on an AWS Lambda function in Java that collects logs, traces, and metrics and sends them to an OpenTelemetry (OTEL auto-instrumentattion ) collector running on-premise (Docker OTEL contrib container). From there, the OTEL collector should forward the data to Datadog.
I am using AWS Distro for OpenTelemetry (ADOT) following the documentation:
🔗 ADOT Lambda Java Setup
🔗 AWS ADOT Official Page
My Lambda runs successfully without errors, but I don't see any telemetry data reaching the OTEL collector.
Lambda Setup
Runtime: Java 21
Build Tool: Maven
ARN Used: arn:aws:lambda:ca-central-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-32-0:4
Environment Variables Configured:
AWS_LAMBDA_EXEC_WRAPPER /opt/otel-handler
OTEL_EXPORTER_OTLP_ENDPOINT http://8.tcp.ngrok.io:18215 ( the endpoint is reachable, i tried with external tool)
Lambda Code
Issue Details
✅ Lambda executes without errors.
❌ No logs, traces, or metrics appear in the OTEL collector logs.
❌ The OTEL collector does not receive any data from Lambda.
Questions
Are my environment variables correctly set for ADOT Java Lambda?
Does ADOT Java Lambda require additional configuration to send traces/metrics?
Any recommendations to debug why the telemetry data is not being sent?
Thank you in advance !
Beta Was this translation helpful? Give feedback.
All reactions