File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
lib/opentelemetry/resource/detector
test/opentelemetry/resource/detector Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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 ( { } )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments