Polish "Add service connection from Opentelemetry Collector for Logging"
See gh-41324
This commit is contained in:
@@ -50,7 +50,7 @@ class OpenTelemetryLoggingContainerConnectionDetailsFactoryIntegrationTests {
|
||||
|
||||
@Test
|
||||
void connectionCanBeMadeToOpenTelemetryContainer() {
|
||||
assertThat(this.connectionDetails.getEndpoint())
|
||||
assertThat(this.connectionDetails.getUrl())
|
||||
.isEqualTo("http://" + container.getHost() + ":" + container.getMappedPort(4318) + "/v1/logs");
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class OpenTelemetryLoggingContainerConnectionDetailsFactory
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getEndpoint() {
|
||||
public String getUrl() {
|
||||
return "http://%s:%d/v1/logs".formatted(getContainer().getHost(), getContainer().getMappedPort(4318));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user