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 attach your traces to Cassandra's requests.
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.connect('keyspace')
st = SessionTracer(s, tracer)
st.execute('SELECT * FROM table')
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for python-cassandra-jaeger-0.1a7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e59aac0cb251f6f8f55d0ad8d2679101b4fc2ddd5e9ff955ce7db5d7065d556 |
|
MD5 | c234e2029be8d3a10d9981fd024de9f1 |
|
BLAKE2b-256 | da22c9cddaca4a317b13d8c30574e0068329264e022229218966c36e6167040b |
Close
Hashes for python_cassandra_jaeger-0.1a7-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 318d7f2f191c58775c98bc589a55b8aae028f2af41a851074cafcce3c145c618 |
|
MD5 | dee72e57b82e6ced336a9463245049a6 |
|
BLAKE2b-256 | 4c47fb500f907e1548504172ddb2626002a2d9457ae7d783bd7f867d2ce07914 |
Close
Hashes for python_cassandra_jaeger-0.1a7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52b2f6064d6061ed81aadba0565a6966babdc310260ca036dc8b6f6d1fece4fb |
|
MD5 | 912e65334f263026fb237bb5c19804d8 |
|
BLAKE2b-256 | e28d2f7f6b0c809ebd9dc68cb2f48473c60bcddf5fd6ef5279f657bb1d7df6bd |