Skip to content

Commit

Permalink
Update ASGI instrumentation docs (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca authored Sep 10, 2020
1 parent 272bc0e commit 65ddc2d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
7 changes: 3 additions & 4 deletions docs/instrumentation/asgi/asgi.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
OpenTelemetry asgi Instrumentation
===================================
.. include:: ../../../instrumentation/opentelemetry-instrumentation-asgi/README.rst

Module contents
---------------
API
---

.. automodule:: opentelemetry.instrumentation.asgi
:members:
Expand Down
15 changes: 13 additions & 2 deletions instrumentation/opentelemetry-instrumentation-asgi/README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OpenTelemetry ASGI Middleware
=============================
OpenTelemetry ASGI Instrumentation
==================================

|pypi|

Expand Down Expand Up @@ -54,6 +54,17 @@ Modify the application's ``asgi.py`` file as shown below.
application = OpenTelemetryMiddleware(application)
Usage (Raw ASGI)
----------------

.. code-block:: python
from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware
app = ... # An ASGI application.
app = OpenTelemetryMiddleware(app)
References
----------

Expand Down

0 comments on commit 65ddc2d

Please sign in to comment.