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.1a8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 769a7634d29c06f601e60d4e5da52406e7a191069cbd1a65e6cb53edf08d1194 |
|
MD5 | c1a953292c936d2c3582d10930960c85 |
|
BLAKE2b-256 | e946ac6f5fed7b7df4c636cf939ab22a121b40fb918ba7b048ec83760c07ff9e |
Close
Hashes for python_cassandra_jaeger-0.1a8-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6c483cb500ace61752c0e77a2c303c3bd8c2deeabe69bae8cd9cc04d484777c |
|
MD5 | 800cd8164b83fdf2ae68c0f81c964e70 |
|
BLAKE2b-256 | c4f083a392dc72da0abcabc8b2eef76821fbbc8546d37371d7a015f245a7ac4b |
Close
Hashes for python_cassandra_jaeger-0.1a8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3725a7dbbfe6a4350e80f9822e935598abff7a0815ff7c66b77ca9176b32432e |
|
MD5 | a2639bdd10fe01c3aaa65bcda9d10d94 |
|
BLAKE2b-256 | c84b076b2677be95a06222b51712232d6120b2cff2d406661250ba2433b50463 |