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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30ddd7d34cac13b77e4da6052877170876cf41ab2bf83c5b8e6b6c27e022ac88 |
|
MD5 | 13774b224942cc424ee5d2324452683a |
|
BLAKE2b-256 | d2c6cbb6a6e6456232799fca20a6918cecfd3101202f9efc984e17b04268c360 |
Close
Hashes for python_cassandra_jaeger-0.1-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e94353d9dd33b83dcfcd6b09fc8433b5a698175d1047d0de819653c4b5ed9d |
|
MD5 | e7f5d2dd2eccf4472847a2c064852fe6 |
|
BLAKE2b-256 | c3c665da9679fe1b6a0a57abf3b3ff6aa3bed790028137751d44e559735d5e0c |
Close
Hashes for python_cassandra_jaeger-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac287f6b57a6d6435aebff6d95eb3c38f6264555c550cd0980d75b1175561fc1 |
|
MD5 | affc61cbcf099dabed3a26f477e15c1c |
|
BLAKE2b-256 | a378b6b95e736e41101fa66f875ec189ca50532b1bc4cd8f4d43b92b10ed7060 |