71
71
easy . perform
72
72
73
73
_ ( span . name ) . must_equal 'HTTP N/A'
74
- _ ( span . attributes [ 'component' ] ) . must_equal 'http'
75
74
_ ( span . attributes [ 'http.method' ] ) . must_equal 'N/A'
76
75
_ ( span . attributes [ 'http.status_code' ] ) . must_be_nil
77
76
_ ( span . attributes [ 'http.url' ] ) . must_equal 'http://example.com/test'
@@ -94,7 +93,6 @@ def stub_response(options)
94
93
it 'when response is successful' do
95
94
stub_response ( response_code : 200 ) do
96
95
_ ( span . name ) . must_equal 'HTTP N/A'
97
- _ ( span . attributes [ 'component' ] ) . must_equal 'http'
98
96
_ ( span . attributes [ 'http.method' ] ) . must_equal 'N/A'
99
97
_ ( span . attributes [ 'http.status_code' ] ) . must_equal 200
100
98
_ ( span . attributes [ 'http.url' ] ) . must_equal 'http://example.com/test'
@@ -108,7 +106,6 @@ def stub_response(options)
108
106
it 'when response is not successful' do
109
107
stub_response ( response_code : 500 ) do
110
108
_ ( span . name ) . must_equal 'HTTP N/A'
111
- _ ( span . attributes [ 'component' ] ) . must_equal 'http'
112
109
_ ( span . attributes [ 'http.method' ] ) . must_equal 'N/A'
113
110
_ ( span . attributes [ 'http.status_code' ] ) . must_equal 500
114
111
_ ( span . attributes [ 'http.url' ] ) . must_equal 'http://example.com/test'
@@ -122,7 +119,6 @@ def stub_response(options)
122
119
it 'when request times out' do
123
120
stub_response ( response_code : 0 , return_code : :operation_timedout ) do
124
121
_ ( span . name ) . must_equal 'HTTP N/A'
125
- _ ( span . attributes [ 'component' ] ) . must_equal 'http'
126
122
_ ( span . attributes [ 'http.method' ] ) . must_equal 'N/A'
127
123
_ ( span . attributes [ 'http.status_code' ] ) . must_be_nil
128
124
_ ( span . attributes [ 'http.url' ] ) . must_equal 'http://example.com/test'
0 commit comments