Skip to content

Commit c418b14

Browse files
authored
Don't append signal path to signal specific endpoint (#10214)
1 parent 6fde05d commit c418b14

File tree

1 file changed

+3
-3
lines changed
  • instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/otlp

1 file changed

+3
-3
lines changed

instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/otlp/OtlpExporterUtil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ static <G, H, E> E applySignalProperties(
5858
String endpoint = signalProperties.getEndpoint();
5959
if (endpoint == null) {
6060
endpoint = properties.getEndpoint();
61-
}
62-
if (endpoint != null) {
63-
if (isHttpProtobuf) {
61+
if (endpoint != null && isHttpProtobuf) {
6462
if (!endpoint.endsWith("/")) {
6563
endpoint += "/";
6664
}
6765
endpoint += signalPath(dataType);
6866
}
67+
}
6968

69+
if (endpoint != null) {
7070
if (isHttpProtobuf) {
7171
setHttpEndpoint.accept(httpBuilder, endpoint);
7272
} else {

0 commit comments

Comments
 (0)