Skip to main content

AIORedis-OpenTracing

This package enables distributed tracing for the Python asyncio Redis library via The OpenTracing Project. It is heavily influenced by the Redis Opentracing implementation.

Installation

Run the following command:

$ pip install AIORedis-Opentracing

Getting started

Tracing a AIORedis client requires calling init_tracing() and optionally specify an OpenTracing-compatible tracer.

import aioredis
import aioredis_opentracing

# If not provided, opentracing.tracer will be used.
aioredis_opentracing.init_tracing(tracer)

redis = await aioredis.create_redis_pool('redis://localhost')
await redis.set('last_access', datetime.datetime.now())

It's possible to trace only specific pipelines:

aioredis_opentracing.init_tracing(tracer)

pipe = redis.multi_exec()
aioredis_opentracing.trace_pipeline(pipe)

# This pipeline will be executed as a single MULTI command.
pipe.set('key1', 'value1')
pipe.set('key2', 'value2')
ok1, ok2 = await pipe.execute()

When pipeline commands are executed as a transaction, these commands will be grouped under a single MULTI operation. They'll also appear as a single operation in the trace. Outside of a transaction, each command will generate a span.

Metadata

Release files for AIORedis-OpenTracing 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AIORedis-OpenTracing 0.0.1
File Size Uploaded Provenance Actions
AIORedis-OpenTracing-0.0.1.tar.gz 3.7 kB Without provenance Details for AIORedis-OpenTracing-0.0.1.tar.gz

Release files / AIORedis-OpenTracing-0.0.1.tar.gz

Download URL AIORedis-OpenTracing-0.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
df627d70de1f209f3b7aec4db98601cdc61cbab959bea064d1dd5b12c779a976
BLAKE2b-256 checksum
How to use checksums
086bf9555efbcd41c3a609c0831f3c75a095e918bdbdd6190bcd63bfeca94e7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Security for AIORedis-OpenTracing 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page