Skip to main content

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


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

File details

Details for the file opentelemetry_instrumentation_aliyun_ons_http-0.47b1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_aliyun_ons_http-0.47b1.tar.gz
Algorithm Hash digest
SHA256 2f954b5aec3dcb170474f2172e27c0e65e669650235951b5b6e91a7b4f37bf5d
MD5 d13025d53200aa7dba1b2ba65241ce28
BLAKE2b-256 0a9c403b5264b06e7d9b02db95eb9d54bdd99a403abcf086db95e07103949640

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_aliyun_ons_http-0.47b1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_aliyun_ons_http-0.47b1-py3-none-any.whl
Algorithm Hash digest
SHA256 02f913a6b8a86251f3ff5e8df6c3d8035462e1cc4fcd997e194be9318eca4ef7
MD5 a8a661462f0cbccfc5e86e08a35a9aef
BLAKE2b-256 ccbbf9871820e8cebb5cf63132ffdb6ead449e0dfdddd04bc536fa4147d5785c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page