optional delay
This commit is contained in:
@@ -50,6 +50,10 @@ def pay(id):
|
||||
|
||||
def queueOrder(order):
|
||||
app.logger.info('queue order')
|
||||
# For screenshot demo requirements optionally add in a bit of delay
|
||||
delay = int(os.getenv('PAYMENT_DELAY_MS', 0))
|
||||
time.sleep(delay / 1000)
|
||||
|
||||
# RabbitMQ is not currently traced automatically
|
||||
# opentracing tracer is automatically set to Instana tracer
|
||||
# start a span
|
||||
|
Reference in New Issue
Block a user