Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions instana/json_span.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class HttpData(object):
url = None
status = 0
method = None
path_tpl = None
error = None

def __init__(self, **kwds):
Expand Down
5 changes: 3 additions & 2 deletions instana/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ def build_registered_span(self, span):

if span.operation_name in self.http_spans:
data.http = HttpData(host=self.get_http_host_name(span),
url=span.tags.pop(ext.HTTP_URL, ""),
method=span.tags.pop(ext.HTTP_METHOD, ""),
url=span.tags.pop(ext.HTTP_URL, None),
method=span.tags.pop(ext.HTTP_METHOD, None),
status=span.tags.pop(ext.HTTP_STATUS_CODE, None),
path_tpl=span.tags.pop("http.path_tpl", None),
error=span.tags.pop('http.error', None))

if span.operation_name == "rabbitmq":
Expand Down