File tree 2 files changed +16
-6
lines changed
docs/instrumentation/asgi
instrumentation/opentelemetry-instrumentation-asgi
2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
- OpenTelemetry asgi Instrumentation
2
- ===================================
1
+ .. include :: ../../../instrumentation/opentelemetry-instrumentation-asgi/README.rst
3
2
4
- Module contents
5
- ---------------
3
+ API
4
+ ---
6
5
7
6
.. automodule :: opentelemetry.instrumentation.asgi
8
7
:members:
Original file line number Diff line number Diff line change 1
- OpenTelemetry ASGI Middleware
2
- =============================
1
+ OpenTelemetry ASGI Instrumentation
2
+ ==================================
3
3
4
4
|pypi |
5
5
@@ -54,6 +54,17 @@ Modify the application's ``asgi.py`` file as shown below.
54
54
application = OpenTelemetryMiddleware(application)
55
55
56
56
57
+ Usage (Raw ASGI)
58
+ ----------------
59
+
60
+ .. code-block :: python
61
+
62
+ from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware
63
+
64
+ app = ... # An ASGI application.
65
+ app = OpenTelemetryMiddleware(app)
66
+
67
+
57
68
References
58
69
----------
59
70
You can’t perform that action at this time.
0 commit comments