OpenCensus Python exporter for Honeycomb
A simple exporter to translate OpenCensus span data into Honeycomb traces.
Example
import time
import os
from opencensus.trace import tracer as tracer_module
from ochoneycomb import HoneycombExporter
exporter = HoneycombExporter(writekey=os.getenv("HONEYCOMB_WRITEKEY"), dataset=os.getenv("HONEYCOMB_DATASET"), service_name="test-app")
# exporter = file_exporter.FileExporter(file_name='traces')
# Initialize a tracer, by default using the `PrintExporter`
tracer = tracer_module.Tracer(exporter=exporter)
def do_something_to_trace():
time.sleep(1)
# Example for creating nested spans
with tracer.span(name='span1') as span1:
do_something_to_trace()
with tracer.span(name='span1_child1') as span1_child1:
span1_child1.add_annotation("something")
do_something_to_trace()
with tracer.span(name='span1_child2') as span1_child2:
do_something_to_trace()
with tracer.span(name='span2') as span2:
do_something_to_trace()
Install
pip install ochoneycomb
Requirements
pip install opencensus
pip install libhoney
Metadata
Release files for ochoneycomb 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ochoneycomb-0.0.1.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ochoneycomb-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / ochoneycomb-0.0.1.tar.gz
| Download URL | ochoneycomb-0.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cce4ef5502a535c4b715eb2ca90fc4648f5b1e3bfa0187726d15d1c79051983a
|
|
BLAKE2b-256 checksum How to use checksums |
44b7a0650c7be4963eec579f50a639e6eeb606bf27e146b54d636dd5cbce0509
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Release files / ochoneycomb-0.0.1-py3-none-any.whl
| Download URL | ochoneycomb-0.0.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c95ee2dd2755a2c3316c30648c41b51fb646c9a459c6a74ebf253e9552517079
|
|
BLAKE2b-256 checksum How to use checksums |
a7cde276b2171dea1a604b39b4e58d4ffe8ba71c45708f9ead18e44a251742aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Security for ochoneycomb 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.