From 2f5ca65a08b443ac11ba42a4e904f8d0c69f2896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dtalo=20Vieira?= Date: Sun, 18 Apr 2021 14:37:51 -0300 Subject: [PATCH] Solve bug with multiple call to init_tracer https://github.com/jaegertracing/jaeger-client-python/tree/72a1dd1a3c17e5f2bcc6d8d8581aec17219bd82f#production https://github.com/jaegertracing/jaeger-client-python/issues/47 --- tracing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tracing.py b/tracing.py index 93131f8..fda1363 100644 --- a/tracing.py +++ b/tracing.py @@ -3,7 +3,7 @@ from config import Config as AppConfig -def init_tracer(service): +def init_tracer(service_name): logging.getLogger('').handlers = [] logging.basicConfig(format='%(message)s', level=logging.DEBUG) @@ -18,7 +18,7 @@ def init_tracer(service): 'reporting_host': AppConfig.JAEGER_HOST, }, }, - service_name=service + service_name=service_name ) - return config.initialize_tracer() + return config.new_tracer()