opentelemetry-instrumentation-asyncclick
Async Click instrumentation for OpenTelemetry
What it is and what it does
This package is an OpenTelemetry instrumentation plugin that automatically captures tracing data from asyncclick CLI applications. It integrates with the asyncclick fork of the click library to emit spans representing command execution, argument parsing, and callback invocation, allowing you to observe CLI behavior within a distributed tracing system.
The instrumentation works by wrapping asyncclick's internal functions to emit OpenTelemetry events. It depends on opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, typing-extensions, and wrapt. Installation is straightforward and requires Python 3.10 or later. Once installed, it automatically instruments asyncclick calls when the OpenTelemetry SDK is initialized in your application.
Use it for:
- Monitor CLI tool execution in containerized environments where distributed tracing is already deployed
- Debug asyncclick command flows by examining trace spans in an OpenTelemetry backend
- Correlate CLI invocations with upstream service requests in a microservices architecture
- Measure CLI performance and identify bottlenecks in command argument processing
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds OpenTelemetry tracing to asyncclick CLI applications, capturing command execution and argument handling as distributed traces.
Yes, if you are already using OpenTelemetry in your infrastructure and need to trace asyncclick CLI applications. The low install friction, active maintenance, and permissive license make it a straightforward addition. The beta status is not a blocker for production use if your tracing requirements are clear, but verify that the instrumentation covers the asyncclick features you depend on.
Install
opentelemetry-instrumentation-asyncclick on PyPI
pip
pip install opentelemetry-instrumentation-asyncclickuv
uv add opentelemetry-instrumentation-asyncclickpoetry
poetry add opentelemetry-instrumentation-asyncclickInstalling opentelemetry-instrumentation-asyncclick
Before you install
Low friction install with five stable runtime dependencies. Active maintenance—last commit 2026-08-14, released 29 days ago. Beta status (0.65b0) signals ongoing development but the repository is not archived and receives regular updates.
License in practice
Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restriction.
Quickstart
pip install opentelemetry-instrumentation-asyncclick
import opentelemetry.instrumentation.asyncclick
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
# Initialize tracing, then asyncclick calls will be instrumented
Requires Python 3.10 or later. Requires an initialized OpenTelemetry SDK in your application to emit traces.
Verify before relying
- Whether tracing overhead is acceptable for high-frequency CLI invocations
- Compatibility with asyncclick versions beyond what the instrumentation was tested against
- Whether the package instruments all asyncclick features or only a subset
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, typing-extensions, wrapt |
| Maintenance | actively maintained — 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 309,678/month — #7,752 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_asyncclick-0.65b0-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-clickAdds distributed tracing instrumentation to the…
permissive · top 5,000 on PyPI
asyncclickAsyncclick provides a fork of Click that…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-remouladeAdds distributed tracing instrumentation for…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-aiokafkaAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-celeryAdds distributed tracing and observability to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-kafka-pythonAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-asyncpgAdds distributed tracing to PostgreSQL queries…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-pymemcacheAdds OpenTelemetry tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-boto3sqsAdds distributed tracing to Boto3 SQS calls via…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-redisAdds distributed tracing to Redis client calls…
permissive · top 1,000 on PyPI