Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Span and SpanContext implementation #58

Merged
merged 10 commits into from
Jul 25, 2019
Prev Previous commit
Next Next commit
Defensive copy for BoundedList deque iter
c24t committed Jul 23, 2019

Verified

This commit was signed with the committer’s verified signature.
c24t Chris Kleinknecht
commit 7836995b4fde6cb5ff8634675d3e24415fa93372
3 changes: 2 additions & 1 deletion opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Original file line number Diff line number Diff line change
@@ -59,7 +59,8 @@ def __len__(self):
return len(self._dq)

def __iter__(self):
return iter(self._dq)
with self._lock:
return iter(self._dq.copy())

def append(self, item):
with self._lock: