Skip to content

Commit 32fcdd0

Browse files
committed
Adding OTLP
1 parent b0bf349 commit 32fcdd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lookup-service-server/app/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
trace.set_tracer_provider(TracerProvider())
1616
tracer = trace.get_tracer(__name__)
1717

18-
if os.getenv('OTEL_APM_EXPORT'):
19-
trace_exporter = OTLPSpanExporter(endpoint="http://localhost:4318")
18+
if os.getenv('OTEL_COLLECTOR_ENDPOINT'):
19+
trace_exporter = OTLPSpanExporter(endpoint="http://{}:4318".format(os.getenv('OTEL_COLLECTOR_ENDPOINT')))
2020
else:
2121
trace_exporter = ConsoleSpanExporter()
2222
trace.get_tracer_provider().add_span_processor(

0 commit comments

Comments
 (0)