Skip to content

Commit 2a9faf3

Browse files
committed
When in test mode, always record spans
1 parent 4a6367e commit 2a9faf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

instana/recorder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import instana.span as sd
77
import Queue
88
import time
9+
import os
910

1011

1112
class InstanaRecorder(SpanRecorder):
@@ -60,7 +61,7 @@ def record_span(self, span):
6061
Convert the passed BasicSpan into an InstanaSpan and
6162
add it to the span queue
6263
"""
63-
if self.sensor.agent.can_send():
64+
if self.sensor.agent.can_send() or os.environ["INSTANA_TEST"]:
6465
instana_span = None
6566

6667
if span.operation_name in self.registered_spans:

0 commit comments

Comments
 (0)