opentelemetry-instrumentation-pymemcache
OpenTelemetry pymemcache instrumentation
What it is and what it does
This package integrates pymemcache with OpenTelemetry's tracing framework, automatically wrapping memcache client operations to emit observability data. When installed and initialized, it captures each cache operation (get, set, delete, etc.) as a span, allowing you to see memcache activity within your distributed tracing pipeline alongside other instrumented services.
It depends on the core OpenTelemetry API and instrumentation framework, plus semantic conventions for consistent span naming. The package is actively maintained and supports Python 3.10 through 3.14, though it remains in Beta status. It's designed for teams already using OpenTelemetry who need visibility into their memcache layer.
Use it for:
- Trace memcache operations in a distributed system to identify cache hit/miss patterns and latency.
- Debug slow requests by correlating application traces with underlying memcache calls.
- Monitor cache performance metrics alongside application and database tracing in a unified observability platform.
- Validate cache behavior during integration testing by inspecting emitted spans.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds OpenTelemetry tracing instrumentation to pymemcache client calls, automatically capturing memcache operations as spans for observability.
Yes, if you are already using OpenTelemetry and need memcache observability. The low install friction, active maintenance, and permissive license make it a straightforward addition to an observability stack. The Beta status is not a blocker for production use in most cases, but verify compatibility with your specific pymemcache and OpenTelemetry versions first.
Install
opentelemetry-instrumentation-pymemcache on PyPI
pip
pip install opentelemetry-instrumentation-pymemcacheuv
uv add opentelemetry-instrumentation-pymemcachepoetry
poetry add opentelemetry-instrumentation-pymemcacheInstalling opentelemetry-instrumentation-pymemcache
Before you install
Low install friction with four straightforward runtime dependencies. Actively maintained as of 2026-08-14 with recent release activity.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install opentelemetry-instrumentation-pymemcache
from opentelemetry.instrumentation.pymemcache import PyMemcacheInstrumentor
PyMemcacheInstrumentor().instrument()
Requires Python 3.10 or later; package is in Beta status (0.65b0).
Verify before relying
- Whether this instrumentation works with all pymemcache versions or has specific compatibility constraints.
- Performance overhead of instrumentation on typical memcache workloads.
- Whether automatic instrumentation covers all pymemcache client methods 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 | 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, wrapt |
| Maintenance | actively maintained — 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,326,620/month — #2,657 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_pymemcache-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-aiokafkaAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-kafka-pythonAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
pymemcacheA pure-Python memcached client implementing the…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-celeryAdds distributed tracing and observability to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-jinja2Adds OpenTelemetry tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-exceptionsAutomatically captures uncaught exceptions in…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-grpcAdds automatic tracing and monitoring to gRPC…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-botoAdds distributed tracing to AWS SDK (Boto)…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-remouladeAdds distributed tracing instrumentation for…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-psycopg2Adds distributed tracing instrumentation to…
permissive · top 1,000 on PyPI