Skip to content

Commit

Permalink
fix: use the correct otlp endpoint (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-mwangi authored Mar 16, 2021
1 parent 58d67d7 commit f808747
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class HypertraceAgentConfiguration implements PropertySource {
private static final String OTEL_PROCESSOR_BATCH_MAX_QUEUE = "otel.bsp.max.queue.size";
private static final String OTEL_DEFAULT_LOG_LEVEL =
"io.opentelemetry.javaagent.slf4j.simpleLogger.defaultLogLevel";
private static final String OTEL_EXPORTER_OTLP_ENDPOINT = "otel.exporter.otlp.endpoint";

private static final String OTEL_ENABLED = "otel.javaagent.enabled";

Expand All @@ -60,8 +61,7 @@ public Map<String, String> getProperties() {
OTEL_EXPORTER_ZIPKIN_ENDPOINT, agentConfig.getReporting().getEndpoint().getValue());
} else if (agentConfig.getReporting().getTraceReporterType() == TraceReporterType.OTLP) {
configProperties.put(
"OTEL_EXPORTER_OTLP_TRACES_ENDPOINT",
agentConfig.getReporting().getEndpoint().getValue());
OTEL_EXPORTER_OTLP_ENDPOINT, agentConfig.getReporting().getEndpoint().getValue());
}
configProperties.put(
OTEL_PROPAGATORS, toOtelPropagators(agentConfig.getPropagationFormatsList()));
Expand Down

0 comments on commit f808747

Please sign in to comment.