Don't append signal path to signal specific endpoint (#10214)
This commit is contained in:
parent
6fde05d75b
commit
c418b14914
|
@ -58,15 +58,15 @@ class OtlpExporterUtil {
|
||||||
String endpoint = signalProperties.getEndpoint();
|
String endpoint = signalProperties.getEndpoint();
|
||||||
if (endpoint == null) {
|
if (endpoint == null) {
|
||||||
endpoint = properties.getEndpoint();
|
endpoint = properties.getEndpoint();
|
||||||
}
|
if (endpoint != null && isHttpProtobuf) {
|
||||||
if (endpoint != null) {
|
|
||||||
if (isHttpProtobuf) {
|
|
||||||
if (!endpoint.endsWith("/")) {
|
if (!endpoint.endsWith("/")) {
|
||||||
endpoint += "/";
|
endpoint += "/";
|
||||||
}
|
}
|
||||||
endpoint += signalPath(dataType);
|
endpoint += signalPath(dataType);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (endpoint != null) {
|
||||||
if (isHttpProtobuf) {
|
if (isHttpProtobuf) {
|
||||||
setHttpEndpoint.accept(httpBuilder, endpoint);
|
setHttpEndpoint.accept(httpBuilder, endpoint);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue