Skip to content

Commit

Permalink
Solve bug with multiple call to init_tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
italovieira committed Apr 18, 2021
1 parent 3873fe2 commit 2f5ca65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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()

0 comments on commit 2f5ca65

Please sign in to comment.