Aliyun ons http api instrumentation for OpenTelemetry
Project description
This library provides automatic and manual instrumentation of Aliyun Ons mq_http_sdk
auto-instrumentation using the opentelemetry-instrumentation package is also supported.
Installation
pip install opentelemetry-instrumentation-aliyun-ons-http
Usage
from opentelemetry.instrumentation.aliyun_ons_http import AliyunOnsHttpInstrumentor
AliyunOnsHttpInstrumentor.instrument()
Note:
Consumers are in batches, so it is not possible to automatically add trace information to each message.
When process messages, manually call it.
from opentelemetry.instrumentation.aliyun_ons_http import process_record
...
messages = consumer.consume_message():
for message in messages:
with process_record(message):
# do your business
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_instrumentation_aliyun_ons_http-0.47b1.tar.gz.
File metadata
- Download URL: opentelemetry_instrumentation_aliyun_ons_http-0.47b1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f954b5aec3dcb170474f2172e27c0e65e669650235951b5b6e91a7b4f37bf5d
|
|
| MD5 |
d13025d53200aa7dba1b2ba65241ce28
|
|
| BLAKE2b-256 |
0a9c403b5264b06e7d9b02db95eb9d54bdd99a403abcf086db95e07103949640
|
File details
Details for the file opentelemetry_instrumentation_aliyun_ons_http-0.47b1-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_instrumentation_aliyun_ons_http-0.47b1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02f913a6b8a86251f3ff5e8df6c3d8035462e1cc4fcd997e194be9318eca4ef7
|
|
| MD5 |
a8a661462f0cbccfc5e86e08a35a9aef
|
|
| BLAKE2b-256 |
ccbbf9871820e8cebb5cf63132ffdb6ead449e0dfdddd04bc536fa4147d5785c
|