skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

[Feature] Python agent support generic ASGI/WSGI middleware instrumentation

Open Superskyyy opened this issue 2 years ago • 0 comments

Search before asking

  • [X] I had searched in the issues and found no similar feature requirement.

Description

Currently the web frameworks supported in the Python agent are instrumented individually, yet we lack the ability to trace generic requests from the ASGI and WSGI middleware level, which enables the auto tracing of any framework that follows these two protocols.

Middlewares: So essentially each request go down each middleware and go back in reverse order as they return.

Then as a result, we should have a SkyWalkingASGI(WSGI)Middleware that can be added to any framework, tracing should automatically work.

New contributors are welcome to try this out. Upon completion please file a PR to here so people know we have this feature: https://github.com/florimondmanca/awesome-asgi#monitoring.

Use case

User should be able to trace any ASGI/WSGI compatible libraries even if the framework itself is not instrumented.

Related issues

No response

Are you willing to submit a PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

Superskyyy avatar Apr 25 '23 16:04 Superskyyy