Skip to main content

Library to correctly pass current OpenTracing span to Cassandra

Project description

python-cassandra-jaeger

When do I use it?

When I'm using the following technologies:

And you want to view what Cassandra's doing with your queries.

Usage

Just do the following:

from python_cassandra_jaeger import SessionTracer
from cassandra.cluster import Cluster

from .tracing import tracer

c = Cluster(['127.0.0.1'])
s = c.session()
st = SessionTracer(s, tracer)

st.execute('')

And you keep on utilizing st instead of s. This will automatically execute tracing when your span is being traced.

For tracing cassandra-driver using smok-serwis/cassandra-jaeger-tracing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-cassandra-jaeger-0.1a5.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distributions

python_cassandra_jaeger-0.1a5-py3.8.egg (2.8 kB view hashes)

Uploaded Source

python_cassandra_jaeger-0.1a5-py2.py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page