Skip to content

Commit

Permalink
Fixed common tags leaking state between spans (#9)
Browse files Browse the repository at this point in the history
* fix bug where state is leaked between spans when using common tags feature

* fix linting issue
  • Loading branch information
rhilfers authored Jan 29, 2020
1 parent 38dcb76 commit 0c1c699
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haystack/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def start_span(self,

# Set common tags
if self._common_tags:
tags = {**self._common_tags, **tags} if tags else self._common_tags
tags = {**self._common_tags, **tags} if tags else \
self._common_tags.copy()

return Span(self,
operation_name=operation_name,
Expand Down

0 comments on commit 0c1c699

Please sign in to comment.