Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/instrumentation/urllib/urllib3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
OpenTelemetry urllib Instrumentation
============================================

.. automodule:: opentelemetry.instrumentation.urllib
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.


"""
This library allows tracing HTTP requests made by the
`urllib https://docs.python.org/3/library/urllib.html>`_ library.
`urllib <https://docs.python.org/3/library/urllib>`_ library.

Usage
-----

.. code-block:: python

from urllib import request
Expand All @@ -43,7 +41,7 @@
right after a Span is created for a request and right before the span is finished processing a response respectively.
The hooks can be configured as follows:

..code:: python
.. code:: python

# `request_obj` is an instance of urllib.request.Request
def request_hook(span, request_obj):
Expand Down