Skip to content

Commit c2ef8c8

Browse files
committed
Record and translate error tags.
1 parent b09f5f1 commit c2ef8c8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

instana/recorder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def build_registered_span(self, span):
9393
ts=int(round(span.start_time * 1000)),
9494
d=int(round(span.duration * 1000)),
9595
f=self.sensor.agent.from_,
96+
ec=self.get_tag(span, "ec"),
97+
error=self.get_tag(span, "error"),
9698
data=data)
9799

98100
def build_sdk_span(self, span):

instana/span.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class InstanaSpan(object):
88
n = None
99
f = None
1010
ec = 0
11+
error = False
1112
data = None
1213

1314
def __init__(self, **kwds):

0 commit comments

Comments
 (0)