opentelemetry-util-http-0.62b1
0.62b1
0.62b0
0.61b0
0.60b1
0.60b0
0.59b0
0.58b0
0.57b0
0.56b0
0.55b1
0.55b0
0.54b1
0.54b0
0.53b1
0.53b0
0.52b1
0.52b0
0.51b0
0.50b0
0.49b2
0.49b1
0.49b0
0.48b0
0.47b0
0.46b0
0.45b0
0.44b0
0.43b0
0.42b0
0.41b0
0.40b0
0.39b0
0.38b0
0.37b0
0.36b0
0.35b0
0.34b0
0.33b0
0.32b0
0.31b0
0.30b1
0.30b0
0.29b0
0.28b1
0.28b0
0.27b0
0.26b1
0.25b2
0.25b1
0.25b0
0.24b0
0.23b2
0.23b0
0.22b0
0.21b0
0.20b0
0.19b0
0.18b1
0.18b0
0.62b1
0.62b0
0.61b0
0.60b1
0.60b0
0.59b0
0.58b0
0.57b0
0.56b0
0.55b1
0.55b0
0.54b1
0.54b0
0.53b1
0.53b0
0.52b1
0.52b0
0.51b0
0.50b0
0.49b2
0.49b1
0.49b0
0.48b0
0.47b0
0.46b0
0.45b0
0.44b0
0.43b0
0.42b0
0.41b0
0.40b0
0.39b0
0.38b0
0.37b0
0.36b0
0.35b0
0.34b0
0.33b0
0.32b0
0.31b0
0.30b1
0.30b0
0.29b0
0.28b1
0.28b0
0.27b0
0.26b1
0.25b2
0.25b1
0.25b0
0.24b0
0.23b2
0.23b0
0.22b0
0.21b0
0.20b0
0.19b0
0.18b1
0.18b0
توضیحات
Web util for OpenTelemetry
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | opentelemetry-util-http-0.62b1 |
| نام | opentelemetry-util-http |
| نسخه کتابخانه | 0.62b1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/opentelemetry-util-http/ |
| مجوز | - |
OpenTelemetry Util HTTP
=======================
|pypi|
.. |pypi| image:: https://badge.fury.io/py/opentelemetry-util-http.svg
:target: https://pypi.org/project/opentelemetry-util-http/
This library provides ASGI, WSGI middleware and other HTTP-related
functionality that is common to instrumented web frameworks (such as Django,
Starlette, FastAPI, etc.) to track requests timing through OpenTelemetry.
Installation
------------
::
pip install opentelemetry-util-http
Usage (Quart)
-------------
.. code-block:: python
from quart import Quart
from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware
app = Quart(__name__)
app.asgi_app = OpenTelemetryMiddleware(app.asgi_app)
@app.route("/")
async def hello():
return "Hello!"
if __name__ == "__main__":
app.run(debug=True)
Usage (Django 3.0)
------------------
Modify the application's ``asgi.py`` file as shown below.
.. code-block:: python
import os
from django.core.asgi import get_asgi_application
from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'asgi_example.settings')
application = get_asgi_application()
application = OpenTelemetryMiddleware(application)
Usage (Raw ASGI)
----------------
.. code-block:: python
from opentelemetry.instrumentation.asgi import OpenTelemetryMiddleware
app = ... # An ASGI application.
app = OpenTelemetryMiddleware(app)
References
----------
* `OpenTelemetry Project <https://opentelemetry.io/>`_
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl opentelemetry-util-http-0.62b1:
pip install opentelemetry-util-http-0.62b1.whl
نصب پکیج tar.gz opentelemetry-util-http-0.62b1:
pip install opentelemetry-util-http-0.62b1.tar.gz