diff --git a/CHANGELOG.md b/CHANGELOG.md index ab07e118..a19b4e00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Drop support for flask 1.x due to dependency issue in Jinja2 and EOL (#195) - Fixes: + - Fix the problem of multiple requests for the same traceId in Tornado framework (#209) - Spans now correctly reference finished parents (#161) - Remove potential password leak from Aiohttp outgoing url (#175) - Handle error when REMOTE_PORT is missing in Flask (#176) diff --git a/skywalking/trace/context.py b/skywalking/trace/context.py index ec359d99..90d0c035 100644 --- a/skywalking/trace/context.py +++ b/skywalking/trace/context.py @@ -46,10 +46,7 @@ def _spans(): # need to do this because can't set mutable default = [] in conte return spans def _spans_dup(): - spans = __spans.get()[:] - __spans.set(spans) - - return spans + return __spans.get() __spans.set([])