skillfed

aliyun-trace

Aliyun Trace

aliyun-trace v1.0.3 17.5M downloads/30d#1,115 on PyPI
Permissive license Apache-2.0 AGING released

What it is and what it does

Aliyun Trace is a Python library for creating manual traces of LLM applications using Aliyun's tracing infrastructure. It builds on OpenTelemetry standards (via opentelemetry-api and opentelemetry-semantic-conventions) to instrument LLM workloads, allowing developers to capture and export trace data to Aliyun's Application Real-time Monitoring Service (ARMS). The library wraps instrumentation logic using wrapt and applies Aliyun-specific semantic conventions.

The package is positioned as a bridge between your LLM code and Aliyun's observability platform. It handles the mechanics of trace creation so you can focus on marking the spans and events that matter in your application. With low install friction and support for Python 3.7 through 3.11, it integrates into existing OpenTelemetry setups, though its aging maintenance status suggests it may lag behind rapid changes in the OpenTelemetry ecosystem.

Use it for:

  • Instrument LLM inference pipelines running on Aliyun infrastructure to capture request flow and latency.
  • Create manual traces for custom LLM workflows where automatic instrumentation is insufficient.
  • Export trace data to Aliyun ARMS for centralized monitoring and debugging of distributed LLM applications.
  • Integrate LLM observability into existing OpenTelemetry-based monitoring stacks on Aliyun.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Manually creates traces for LLM applications using Aliyun's tracing infrastructure, integrating with OpenTelemetry for standardized observability.

Yes, if you are running LLM workloads on Aliyun and need to send traces to ARMS. The low install friction and permissive license make it straightforward to add. However, the 420-day maintenance gap warrants checking that it remains compatible with your OpenTelemetry version and Aliyun ARMS API before committing to production use.

Install

aliyun-trace on PyPI

pip

pip install aliyun-trace

uv

uv add aliyun-trace

poetry

poetry add aliyun-trace

Installing aliyun-trace

Before you install

Low install friction with a pure-Python wheel. Maintenance status is aging—last release was 420 days ago—so expect limited active development and potential staleness relative to OpenTelemetry ecosystem changes.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions, typical for observability libraries.

Quickstart

pip install aliyun-trace

from aliyun_trace import Tracer
tracer = Tracer()
tracer.create_trace()

Requires Python 3.7 or later; depends on aliyun-semantic-conventions, opentelemetry-api, opentelemetry-semantic-conventions, and wrapt being available.

Verify before relying

  • Exact API surface and trace creation methods not detailed in excerpt; confirm whether it covers your LLM instrumentation needs.
  • Whether this integrates with Aliyun ARMS console or requires additional configuration beyond the library itself.
  • Current compatibility with recent OpenTelemetry releases, given 420-day gap since last update.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 4 — aliyun-semantic-conventions, opentelemetry-api, opentelemetry-semantic-conventions, wrapt
Maintenance aging — 420 days since the last release
First released
Downloads 17,508,739/month — #1,115 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: aliyun_trace-1.0.3-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

llm tracing aliyunopentelemetry trace instrumentationaliyun arms tracingmanual trace creationllm observabilitydistributed tracing setup
observabilityllm-instrumentationaliyun-arms

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

aliyun-semantic-conventions

Provides standardized semantic convention…

permissive · top 5,000 on PyPI

openlit

OpenLIT provides OpenTelemetry-native…

permissive · top 15,000 on PyPI

traceloop-sdk

Traceloop SDK instruments LLM applications to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-alephalpha

Automatically captures and traces calls to…

permissive · top 5,000 on PyPI

lmnr

Python SDK that traces, evaluates, and analyzes…

permissive · top 1,000 on PyPI

promptflow-tracing

Captures and visualizes the internal execution…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-llamaindex

Adds distributed tracing to LlamaIndex…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-openai

Captures traces of OpenAI API calls (prompts,…

permissive · top 5,000 on PyPI

lumigo-tracer

Lumigo-tracer instruments Python Lambda…

permissive · top 15,000 on PyPI

lmnr-claude-code-proxy

A thin proxy server that routes Claude Code…

unclear · top 5,000 on PyPI