AWS Lambda function logs are cluttered with OpenTelemetry errors #3293
Replies: 1 comment 3 replies
-
There is lambda instrumentation which adds a few HTTP attributes to the span https://github.com/open-telemetry/opentelemetry-python-contrib/blob/46e4b1da44c534fed8e1002899e9e41e6d668018/instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py#L193-L230 It uses
I suspect this is a bug with instrumentation, but I could be wrong.
This is probably because of the wrong endpoint configuration. |
Beta Was this translation helpful? Give feedback.
-
I am using AWS Lambda with Python 3.9 and OpenTelemetry SDK 1.17.0 to send metrics to an ADOT collector. The collector then exports the metrics to an endpoint. While everything is working as expected, I am seeing a few error logs in the Lambda log group, making it hard to maintain the logs.
I need help with either disabling these logs or fixing the errors. Here are some details of the environment variables and configuration files I'm using:
Tools:
arn:aws:lambda:us-east-1:901920570463:layer:aws-otel-python-amd64-ver-1-17-0:1
(AWS Distro for OpenTelemetry Lambda Support)Environment variables:
Configuration file (otel-config.yaml):
Here are the error logs that I'm receiving in the Lambda log group:
I would appreciate any help or suggestions to resolve these errors or disable the logs. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions