skillfed

opentelemetry-instrumentation-pymemcache

OpenTelemetry pymemcache instrumentation

opentelemetry-instrumentation-pymemcache v0.65b0 3.3M downloads/30d#2,657 on PyPI1,086
Permissive license Apache-2.0 Active released

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

uv

uv add opentelemetry-instrumentation-pymemcache

poetry

poetry add opentelemetry-instrumentation-pymemcache

Installing 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

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

opentelemetry pymemcache instrumentationmemcache tracingpymemcache observabilitydistributed tracing memcacheopentelemetry instrumentationcache operation tracing
observabilitydistributed-tracinginstrumentation

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

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-kafka-python

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

pymemcache

A pure-Python memcached client implementing the…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-celery

Adds distributed tracing and observability to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-jinja2

Adds OpenTelemetry tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-exceptions

Automatically captures uncaught exceptions in…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-grpc

Adds automatic tracing and monitoring to gRPC…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-boto

Adds distributed tracing to AWS SDK (Boto)…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-remoulade

Adds distributed tracing instrumentation for…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-psycopg2

Adds distributed tracing instrumentation to…

permissive · top 1,000 on PyPI