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.47b0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_aliyun_ons_http-0.47b0.tar.gz
Algorithm Hash digest
SHA256 36e1fb636b1e01b4612b43965d446aaa0c3562ce2b4975f3cecc0b4dda061b77
MD5 97ae525732de2b1f147dd4c7007c22ad
BLAKE2b-256 c5d533ce9ab7bcbeeefecdf5507ff3e8dcde6bae66bad6b7ed0c7b67e249380f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_aliyun_ons_http-0.47b0-py3-none-any.whl
Algorithm Hash digest
SHA256 31f19f2d783dc25d06c9646e8ffa6d050edbc2f083d67bab8c705a28dcad7774
MD5 36aa4fbbaa48deb733088de9280a41ab
BLAKE2b-256 099d3320dac3ff7d1bb1f063f382e8e7cc360fcd17fd03f43cf9934bf16dcf4a

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