-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[processor/resourcedetection] AWS Lambda faas.instance and aws.log.* attributes not set #31359
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
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: