Giter Site home page Giter Site logo

Comments (3)

pglombardo avatar pglombardo commented on June 12, 2024

Hi @bman7777 - thanks for reporting.

gevent does have some issues filed on this and the general solution seems to be "monkey patch earlier" (re: gevent.monkey.patch_all()):

gevent/gevent#1531
gevent/gevent#1141

But this might also be related to AUTOWRAPT_BOOTSTRAP. If you are using this method to instrument your python applications, there is a known issue where autowrapt doesn't work correctly with gevent. This is because autowrapt loads the instana package before gevent can do its own monkey patching.

I added a note on this here:
https://www.instana.com/docs/ecosystem/python/#activating-without-code-changes

This method of activation will not work with applications based on gevent. This is because gevent must be activated and monkey.patch_all() called first.

If this is the case, then you should either migrate to Python AutoTrace or if you are using any custom calls, the manual installation method (by adding import instana to your code):

https://www.instana.com/docs/ecosystem/python/troubleshooting/#migrating-to-python-autotrace
https://www.instana.com/docs/ecosystem/python/#activating-with-code-changes

Let me know if this is the case for you and if this helps!

from python-sensor.

pglombardo avatar pglombardo commented on June 12, 2024

I'm not completely sure yet if the AUTOWRAPT_BOOTSTRAP issue affects you but I added a new section in our documentation to at least explain the known issue:
https://www.instana.com/docs/ecosystem/python/troubleshooting/#autowrapt_bootstrap-gevent--recursionerror

from python-sensor.

bman7777 avatar bman7777 commented on June 12, 2024

This did end up resolving my issue. Thank you!

from python-sensor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.