[processor/resourcedetection] AWS Lambda faas.instance and aws.log.* attributes not set #31359
Labels
bug
Something isn't working
needs triage
New item requiring triage
processor/resourcedetection
Resource detection processor
Stale
Component(s)
processor/resourcedetection
What happened?
Description
We are running OpenTelemetry Collector Lambda Extension for AWS Lambda version 0.91.0, configured with the resourcedetection processor where the
lambda
detector is included. It is correctly setting the attributes except for these:$AWS_LAMBDA_LOG_STREAM_NAME
)$AWS_LAMBDA_LOG_GROUP_NAME
)$AWS_LAMBDA_LOG_STREAM_NAME
)Looking closer, we found the otelcol extension does not have the
AWS_LAMBDA_LOG_GROUP_NAME
andAWS_LAMBDA_LOG_STREAM_NAME
environment variables available, which is confirmed by AWS docs:Steps to Reproduce
Install the otelcol extension in an AWS Lambda function, exporting telemetry to any backend that allows examining the exported data.
Expected Result
Exported telemetry has Resource Attributes
faas.instance
,aws.log.group.names
,aws.log.stream.names
.Actual Result
Exported telemetry does not have those three attributes.
Collector version
OpenTelemetry Collector Lambda Extension for AWS Lambda 0.91.0
Environment information
Environment
AWS Lambda function (any runtime)
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: