We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0bf349 commit 32fcdd0Copy full SHA for 32fcdd0
lookup-service-server/app/main.py
@@ -15,8 +15,8 @@
15
trace.set_tracer_provider(TracerProvider())
16
tracer = trace.get_tracer(__name__)
17
18
-if os.getenv('OTEL_APM_EXPORT'):
19
- trace_exporter = OTLPSpanExporter(endpoint="http://localhost:4318")
+if os.getenv('OTEL_COLLECTOR_ENDPOINT'):
+ trace_exporter = OTLPSpanExporter(endpoint="http://{}:4318".format(os.getenv('OTEL_COLLECTOR_ENDPOINT')))
20
else:
21
trace_exporter = ConsoleSpanExporter()
22
trace.get_tracer_provider().add_span_processor(
0 commit comments