pinned to 3.6 and updated to OT 2.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM python:2
|
FROM python:3.6
|
||||||
# Downgraded to Python 2 due to futures package clash
|
# Downgraded to Python 2 due to futures package clash
|
||||||
# Will update back to Python 3 once depency hell is fixed
|
# Will update back to Python 3 once depency hell is fixed
|
||||||
|
|
||||||
|
@@ -53,9 +53,11 @@ def queueOrder(order):
|
|||||||
# RabbitMQ is not currently traced automatically
|
# RabbitMQ is not currently traced automatically
|
||||||
# opentracing tracer is automatically set to Instana tracer
|
# opentracing tracer is automatically set to Instana tracer
|
||||||
# start a span
|
# start a span
|
||||||
context = ot.tracer.current_context()
|
|
||||||
|
# context = ot.tracer.current_context()
|
||||||
|
sspan = ot.tracer.active_span
|
||||||
span = ot.tracer.start_span(operation_name='queue-order',
|
span = ot.tracer.start_span(operation_name='queue-order',
|
||||||
child_of=ot.tracer.current_context(),
|
child_of=sspan,
|
||||||
tags={
|
tags={
|
||||||
tags.SPAN_KIND: 'producer',
|
tags.SPAN_KIND: 'producer',
|
||||||
tags.COMPONENT: 'payment',
|
tags.COMPONENT: 'payment',
|
||||||
|
Reference in New Issue
Block a user