Commit ca021b8e authored by Nane Kratzke's avatar Nane Kratzke
Browse files

tracer setting

parent 5f2b40c4
......@@ -22,8 +22,8 @@ config = Config(config = {
'reporter_batch_size': 1
}, service_name=service)
jaeger_tracer = config.initialize_tracer()
tracing = FlaskTracing(jaeger_tracer, True, app)
tracer = config.initialize_tracer()
tracing = FlaskTracing(tracer, True, app)
@app.route('/')
def index():
......@@ -33,7 +33,7 @@ def index():
def hip():
r = ""
try:
parent_span = flask_tracer.get_span()
parent_span = tracer.get_span()
with opentracing.tracer.start_span(f"{service}-{tier + 1}", child_of=parent_span) as span:
url = f"http://{service}-{tier + 1}"
span.set_tag("http.url", url)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment