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.1a9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0c13845b63856cec7769c5bb0ebc2e518ac6dbb7e9a9734a46efaecc01e81be |
|
MD5 | 65ec6d70bb1daef9e9a8db56a6b6190e |
|
BLAKE2b-256 | c63bddeb3cbe61cd75aa6307d8e413683ea253a9c7d11dc3617a12c464b346d1 |
Close
Hashes for python_cassandra_jaeger-0.1a9-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c0cc45c1cb609514ff8c96398abbbcf2cc75480d2ad75a27421efce6b2d5bd6 |
|
MD5 | c1a6185238511167032c4bea638e9f15 |
|
BLAKE2b-256 | 52c4629c2270fd53b35427e322d4d48c56fc4dc47c1bf83f724fd2627ea3ae5f |
Close
Hashes for python_cassandra_jaeger-0.1a9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 750c2c27fad217ec91699cf3a2b3aa25c1e443b21ef9c8248b2de6f123253342 |
|
MD5 | 34c79e1600f4e6ed5d8d9d2ac6bd8324 |
|
BLAKE2b-256 | 5132182dc27df726bf3d320ae62a2dbd11349bb5abb60712b95a62ac2b94ce5d |