skillfed

opentelemetry-instrumentation-asyncclick

Async Click instrumentation for OpenTelemetry

opentelemetry-instrumentation-asyncclick v0.65b0 309.7K downloads/30d#7,752 on PyPI1,086
Permissive license Apache-2.0 Active released

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-asyncclick

uv

uv add opentelemetry-instrumentation-asyncclick

poetry

poetry add opentelemetry-instrumentation-asyncclick

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

asyncclick tracingopentelemetry cli instrumentationasync click observabilitycommand-line tracingdistributed tracing for cliasyncclick monitoring
observabilitycli-instrumentationdistributed-tracing

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

opentelemetry-instrumentation-click

Adds distributed tracing instrumentation to the…

permissive · top 5,000 on PyPI

asyncclick

Asyncclick provides a fork of Click that…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-remoulade

Adds distributed tracing instrumentation for…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-aiokafka

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-celery

Adds distributed tracing and observability to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-kafka-python

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-asyncpg

Adds distributed tracing to PostgreSQL queries…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-pymemcache

Adds OpenTelemetry tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-boto3sqs

Adds distributed tracing to Boto3 SQS calls via…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-redis

Adds distributed tracing to Redis client calls…

permissive · top 1,000 on PyPI