-
Notifications
You must be signed in to change notification settings - Fork 412
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
Add support for gevent.pool.Pool and gevent.pool.Group #600
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small non-required suggestion, but otherwise lgtm 👍
@@ -17,15 +34,23 @@ class TracedGreenlet(gevent.Greenlet): | |||
``Greenlet`` class means extending automatically ``TracedGreenlet``. | |||
""" | |||
def __init__(self, *args, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole __init__
method should be able to go away if all we are doing is calling super().__init__()
class TracedGreenlet(TracingMixin, gevent.Greenlet):
pass
class TracedIMapUnordered(TracingMixing, gpool.IMapUnorderd):
pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, not a big deal if we keep these as-is (with __init__
), not a required change to make to land this.
for s in inner_spans: | ||
eq_('greenlet', s.name) | ||
eq_('base', s.resource) | ||
eq_(outer_span.trace_id, s.trace_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of interest since gevent 1.3 was released earlier this year I tried adding it to our test suite.
This test appears to fail for gevent>=1.3. However we don't officially support gevent>=1.3 so this is okay for now. Just something to keep in mind when we come around to supporting 1.3. 😄
Looks good to me! |
This is a fix for #275.