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

Add support for gevent.pool.Pool and gevent.pool.Group #600

Merged
merged 2 commits into from
Oct 11, 2018

Conversation

wackywendell
Copy link
Contributor

This is a fix for #275.

Copy link
Member

@brettlangdon brettlangdon left a 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):
Copy link
Member

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

Copy link
Member

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)
Copy link
Member

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. 😄

cc @palazzem @brettlangdon @labbati

@labbati
Copy link
Member

labbati commented Oct 11, 2018

Looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants