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
Close
Hashes for opentelemetry_instrumentation_aliyun_ons_http-0.47b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e1fb636b1e01b4612b43965d446aaa0c3562ce2b4975f3cecc0b4dda061b77 |
|
MD5 | 97ae525732de2b1f147dd4c7007c22ad |
|
BLAKE2b-256 | c5d533ce9ab7bcbeeefecdf5507ff3e8dcde6bae66bad6b7ed0c7b67e249380f |
Close
Hashes for opentelemetry_instrumentation_aliyun_ons_http-0.47b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31f19f2d783dc25d06c9646e8ffa6d050edbc2f083d67bab8c705a28dcad7774 |
|
MD5 | 36aa4fbbaa48deb733088de9280a41ab |
|
BLAKE2b-256 | 099d3320dac3ff7d1bb1f063f382e8e7cc360fcd17fd03f43cf9934bf16dcf4a |