apm-agent-python icon indicating copy to clipboard operation
apm-agent-python copied to clipboard

Support for web2py framework

Open voiprodrigo opened this issue 7 years ago • 4 comments

web2py is still an active and widely used framework. It would be nice to have nativesupport for it along with Django and Flask.

voiprodrigo avatar Aug 15 '18 00:08 voiprodrigo

Hi @voiprodrigo, thanks for the suggestion. There are lots of frameworks that we still need to add support for, web2py is one of them. We created a survey to gauge interest for different frameworks.

At the moment, we are limited with our resources a bit, so it'll be some time until we get around to do this. But if you or somebody else in the community would be interested to tackle this, the best way to get started would probably be to have a look at how Flask support is implemented: https://github.com/elastic/apm-agent-python/blob/e21b306da70995ca1582666378b7059495ff1bee/elasticapm/contrib/flask/init.py

beniwohli avatar Aug 15 '18 09:08 beniwohli

@beniwohli thanks, I've filled the survey. I understand the constraints, but as much as I'd like to help I think my Python skills are below those required for the task :( Glad to know it's in the pipeline though, thanks for the work!

voiprodrigo avatar Aug 24 '18 13:08 voiprodrigo

Would it possible to use APM generic instrumentation with web2py, for example, to track calls by modules such as psycopg2 and requests? Or could this be problematic?

voiprodrigo avatar Feb 25 '19 15:02 voiprodrigo

Hi @voiprodrigo

yes, that should be possible. I wrote a blog post a while ago that shows the necessary steps to integrate with a framework, using Pyramid as an example: https://www.elastic.co/blog/creating-custom-framework-integrations-with-the-elastic-apm-python-agent. That should give you a pretty good idea :)

beniwohli avatar Feb 25 '19 15:02 beniwohli