We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eceeff6 commit 5a5bb88Copy full SHA for 5a5bb88
resources/aws/lib/opentelemetry/resource/detector/aws/lambda.rb
@@ -33,7 +33,7 @@ def detect
33
# Convert memory size to integer
34
resource_attributes[RESOURCE::FAAS_MAX_MEMORY] = ENV['AWS_LAMBDA_FUNCTION_MEMORY_SIZE'].to_i if ENV['AWS_LAMBDA_FUNCTION_MEMORY_SIZE']
35
rescue StandardError => e
36
- OpenTelemetry.logger.debug("Lambda resource detection failed: #{e.message}")
+ OpenTelemetry.handle_error(exception: e, message: 'Lambda resource detection failed')
37
return OpenTelemetry::SDK::Resources::Resource.create({})
38
end
39
0 commit comments