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
History
v0.2: improved reporting when arguments is a dict
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1388fdf2bb6482d95cebe604d1ea3bf1b120de4ab7c5e1ad768c6eeb314c4aa2 |
|
MD5 | c9be43a3d709b623a56f5d7ab6ffb08c |
|
BLAKE2b-256 | 59659bb763213521d8ae7597770150eae0b9bb5570bdebefccb46405b7360681 |
Close
Hashes for python_cassandra_jaeger-0.2-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b8e2ed13ead2b7dfa6a6772e52e899070df9187cb2d96ffe1e2ff20912ce8c5 |
|
MD5 | bf82529abc86679b9c1624d6a450379f |
|
BLAKE2b-256 | 6b386819de83956bce56dbd58844caf225e74213b7d8563b99026a6d98f171b0 |
Close
Hashes for python_cassandra_jaeger-0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4251aabd6de28f4ef63aa6ef49e794ce24c24898096b25cc938e95a101873e49 |
|
MD5 | 2d3720aa511c315e7be427526f6fa190 |
|
BLAKE2b-256 | c0ec47cb845c82eb6fc2c73f493a0ef1eab9f8d4c21d2bd3ff679b13a79809c6 |