Skip to content

Commit 618796b

Browse files
committed
Issue 76: Fix rest URL paths loading
1 parent 92e73cb commit 618796b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/opentelemetry/contrib/generator/telemetry/cli/CLIProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ private static PayloadHandler getPayloadHandler(String targetEnvYAML) {
182182
restPayloadHandler.setMetricsURL(targetEnvironmentDetails.getRestURL().getMetricsPath());
183183
}
184184
if (!StringUtils.defaultString(targetEnvironmentDetails.getRestURL().getLogsPath()).isBlank()) {
185-
restPayloadHandler.setMetricsURL(targetEnvironmentDetails.getRestURL().getLogsPath());
185+
restPayloadHandler.setLogsURL(targetEnvironmentDetails.getRestURL().getLogsPath());
186186
}
187187
if (!StringUtils.defaultString(targetEnvironmentDetails.getRestURL().getTracesPath()).isBlank()) {
188-
restPayloadHandler.setMetricsURL(targetEnvironmentDetails.getRestURL().getTracesPath());
188+
restPayloadHandler.setTracesURL(targetEnvironmentDetails.getRestURL().getTracesPath());
189189
}
190190
return restPayloadHandler;
191191
}

0 commit comments

Comments
 (0)