Skip to content

Commit 0c1c699

Browse files
authored
Fixed common tags leaking state between spans (#9)
* fix bug where state is leaked between spans when using common tags feature * fix linting issue
1 parent 38dcb76 commit 0c1c699

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

haystack/tracer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def start_span(self,
105105

106106
# Set common tags
107107
if self._common_tags:
108-
tags = {**self._common_tags, **tags} if tags else self._common_tags
108+
tags = {**self._common_tags, **tags} if tags else \
109+
self._common_tags.copy()
109110

110111
return Span(self,
111112
operation_name=operation_name,

0 commit comments

Comments
 (0)