pinned to 3.6 and updated to OT 2.0

This commit is contained in:
Steve Waterworth
2018-07-23 12:20:20 +01:00
parent e8aa24962b
commit e9777164dd
2 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM python:2
FROM python:3.6
# Downgraded to Python 2 due to futures package clash
# Will update back to Python 3 once depency hell is fixed

View File

@@ -53,9 +53,11 @@ def queueOrder(order):
# RabbitMQ is not currently traced automatically
# opentracing tracer is automatically set to Instana tracer
# 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',
child_of=ot.tracer.current_context(),
child_of=sspan,
tags={
tags.SPAN_KIND: 'producer',
tags.COMPONENT: 'payment',