apache / skywalking

APM, Application Performance Monitoring System
https://skywalking.apache.org/
Apache License 2.0
23.93k stars 6.53k forks source link

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

Open Superskyyy opened 1 year ago

Superskyyy commented 1 year ago

Search before asking

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?

Code of Conduct

Mikeheihei commented 2 days ago

please assign me

wu-sheng commented 2 days ago

You could go ahead, we don't have anyone working on this.