Don't append signal path to signal specific endpoint (#10214)

This commit is contained in:
Lauri Tulmin 2024-01-12 19:14:37 +02:00 committed by GitHub
parent 6fde05d75b
commit c418b14914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -58,15 +58,15 @@ class OtlpExporterUtil {
String endpoint = signalProperties.getEndpoint();
if (endpoint == null) {
endpoint = properties.getEndpoint();
}
if (endpoint != null) {
if (isHttpProtobuf) {
if (endpoint != null && isHttpProtobuf) {
if (!endpoint.endsWith("/")) {
endpoint += "/";
}
endpoint += signalPath(dataType);
}
}
if (endpoint != null) {
if (isHttpProtobuf) {
setHttpEndpoint.accept(httpBuilder, endpoint);
} else {