Skip to content

Commit 9be6263

Browse files
authored
Merge branch 'main' into contribute-lambda-resource-detector
2 parents ca7b726 + 266a8ba commit 9be6263

File tree

2 files changed

+4
-1
lines changed
  • resources/aws
    • lib/opentelemetry/resource/detector
    • test/opentelemetry/resource/detector

2 files changed

+4
-1
lines changed

resources/aws/lib/opentelemetry/resource/detector/aws.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def detect(detectors = [])
3232
ECS.detect
3333
when :lambda
3434
Lambda.detect
35+
3536
else
3637
OpenTelemetry.logger.warn("Unknown AWS resource detector: #{detector}")
3738
OpenTelemetry::SDK::Resources::Resource.create({})

resources/aws/test/opentelemetry/resource/detector/aws_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def assert_detection_result(detectors)
5252

5353
it 'returns an empty resource when EC2 detection fails' do
5454
assert_detection_result([:ec2])
55+
5556
end
5657

5758
it 'returns an empty resource when ECS detection fails' do
@@ -110,6 +111,7 @@ def assert_detection_result(detectors)
110111
_(attributes[RESOURCE::HOST_ID]).must_equal('i-1234567890abcdef0')
111112
_(attributes[RESOURCE::HOST_TYPE]).must_equal('m5.xlarge')
112113
_(attributes[RESOURCE::HOST_NAME]).must_equal(hostname)
114+
113115
end
114116

115117
describe 'with succesefful ECS detection' do
@@ -226,4 +228,4 @@ def assert_detection_result(detectors)
226228
end
227229
end
228230
end
229-
end
231+
end

0 commit comments

Comments
 (0)