@@ -11,7 +11,7 @@ def config
1111 tag otlp.test
1212 <http>
1313 bind 127.0.0.1
14- port 4318
14+ port 14318
1515 </http>
1616 CONFIG
1717 end
@@ -38,7 +38,7 @@ def test_configure
3838 d = create_driver
3939 assert_equal "otlp.test" , d . instance . tag
4040 assert_equal "127.0.0.1" , d . instance . http_config . bind
41- assert_equal 4318 , d . instance . http_config . port
41+ assert_equal 14318 , d . instance . http_config . port
4242 end
4343
4444 data ( "metrics" => {
@@ -163,7 +163,7 @@ def config
163163 tag otlp.test
164164 <http>
165165 bind 127.0.0.1
166- port 4318
166+ port 14318
167167 </http>
168168 <transport tls>
169169 ca_path "#{ File . expand_path ( File . dirname ( __FILE__ ) + '/../resources/certs/ca.crt' ) } "
@@ -205,7 +205,7 @@ def compress(data)
205205
206206 def post_https_json ( path , json , headers : { } )
207207 headers = headers . merge ( { "Content-Type" => "application/json" } )
208- post ( path , json , endpoint : "https://127.0.0.1:4318 " , headers : headers , options : https_option )
208+ post ( path , json , endpoint : "https://127.0.0.1:14318 " , headers : headers , options : https_option )
209209 end
210210
211211 def post_json ( path , json , headers : { } , options : { } )
@@ -215,15 +215,15 @@ def post_json(path, json, headers: {}, options: {})
215215
216216 def post_https_protobuf ( path , binary , headers : { } , options : { } )
217217 headers = headers . merge ( { "Content-Type" => "application/x-protobuf" } )
218- post ( path , binary , endpoint : "https://127.0.0.1:4318 " , headers : headers , options : options )
218+ post ( path , binary , endpoint : "https://127.0.0.1:14318 " , headers : headers , options : options )
219219 end
220220
221221 def post_protobuf ( path , binary , headers : { } , options : { } )
222222 headers = headers . merge ( { "Content-Type" => "application/x-protobuf" } )
223223 post ( path , binary , headers : headers , options : options )
224224 end
225225
226- def post ( path , body , endpoint : "http://127.0.0.1:4318 " , headers : { } , options : { } )
226+ def post ( path , body , endpoint : "http://127.0.0.1:14318 " , headers : { } , options : { } )
227227 connection = Excon . new ( "#{ endpoint } #{ path } " , body : body , headers : headers , **options )
228228 connection . post
229229 end
0 commit comments