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

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