Polish "Add service connection from Opentelemetry Collector for Logging"
See gh-41324
This commit is contained in:
@@ -32,7 +32,7 @@ class OpenTelemetryLoggingDockerComposeConnectionDetailsFactoryIntegrationTests
|
||||
|
||||
@DockerComposeTest(composeFile = "otlp-compose.yaml", image = TestImage.OPENTELEMETRY)
|
||||
void runCreatesConnectionDetails(OtlpLoggingConnectionDetails connectionDetails) {
|
||||
assertThat(connectionDetails.getEndpoint()).startsWith("http://").endsWith("/v1/logs");
|
||||
assertThat(connectionDetails.getUrl()).startsWith("http://").endsWith("/v1/logs");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ class OpenTelemetryLoggingDockerComposeConnectionDetailsFactory
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getEndpoint() {
|
||||
public String getUrl() {
|
||||
return "http://%s:%d/v1/logs".formatted(this.host, this.port);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user