@@ -137,9 +137,9 @@ private void assertConfig(AgentConfig agentConfig) {
137137 Assertions .assertEquals (
138138 "/foo/bar/example.pem" , agentConfig .getReporting ().getCertFile ().getValue ());
139139 Assertions .assertEquals (
140- "http://localhost:4317 " , agentConfig .getReporting ().getEndpoint ().getValue ());
140+ "http://localhost:5442 " , agentConfig .getReporting ().getEndpoint ().getValue ());
141141 Assertions .assertEquals (
142- "http://localhost:4317 " , agentConfig .getReporting ().getMetricEndpoint ().getValue ());
142+ "http://localhost:5442 " , agentConfig .getReporting ().getMetricEndpoint ().getValue ());
143143 Assertions .assertEquals (true , agentConfig .getReporting ().getSecure ().getValue ());
144144 Assertions .assertEquals (16 , agentConfig .getDataCapture ().getBodyMaxSizeBytes ().getValue ());
145145 Assertions .assertEquals (
@@ -172,15 +172,15 @@ public void configWithSystemProps() throws IOException {
172172 }
173173
174174 @ Test
175- @ SetEnvironmentVariable (key = "HT_REPORTING_ENDPOINT" , value = "http://oltp.hypertrace.org:4317 " )
175+ @ SetEnvironmentVariable (key = "HT_REPORTING_ENDPOINT" , value = "http://oltp.hypertrace.org:5442 " )
176176 public void complexConfig () throws IOException {
177177 // GIVEN a config file with a non-default reporting endpoint and an env-var with a different
178178 // non-default otlp reporting endpoint
179179 URL resource = getClass ().getClassLoader ().getResource ("config.yaml" );
180180 // WHEN we load the config
181181 AgentConfig agentConfig = HypertraceConfig .load (resource .getPath ());
182182 // VERIFY the trace and metric endpoints are the both the value of the env var
183- String expectedEndpoint = "http://oltp.hypertrace.org:4317 " ;
183+ String expectedEndpoint = "http://oltp.hypertrace.org:5442 " ;
184184 Assertions .assertEquals (expectedEndpoint , agentConfig .getReporting ().getEndpoint ().getValue ());
185185 Assertions .assertEquals (
186186 expectedEndpoint , agentConfig .getReporting ().getMetricEndpoint ().getValue ());
@@ -238,7 +238,7 @@ void nonDefaultReportingEndpoint() throws IOException {
238238 // VERIFY the trace reporting type is OTLP
239239 Assertions .assertEquals (
240240 TraceReporterType .OTLP , agentConfig .getReporting ().getTraceReporterType ());
241- String expectedReportingEndpoint = "http://example.com:4317 " ;
241+ String expectedReportingEndpoint = "http://example.com:5442 " ;
242242 // VERIFY the trace reporting and metric reporting endpoints are both the specified value
243243 Assertions .assertEquals (
244244 expectedReportingEndpoint , agentConfig .getReporting ().getEndpoint ().getValue ());
@@ -257,10 +257,10 @@ void nonDefaultMetricsEndpoint() throws IOException {
257257 TraceReporterType .OTLP , agentConfig .getReporting ().getTraceReporterType ());
258258 // VERIFY the trace reporting endpoint is still the default value
259259 Assertions .assertEquals (
260- "http://localhost:4317 " , agentConfig .getReporting ().getEndpoint ().getValue ());
260+ "http://localhost:5442 " , agentConfig .getReporting ().getEndpoint ().getValue ());
261261 // VERIFY the metric reporting endpoint is the specified value
262262 Assertions .assertEquals (
263- "http://example.com:4317 " , agentConfig .getReporting ().getMetricEndpoint ().getValue ());
263+ "http://example.com:5442 " , agentConfig .getReporting ().getMetricEndpoint ().getValue ());
264264 }
265265
266266 @ Test
0 commit comments