Introduction
opentracing-decorator - A Python decorator for OpenTracing trace generation.
Opentracing Decorator is a small Python library that adds a convenient decorator for generating OpenTracing traces. It works with any client implementation that follows the OpenTracing standard.
Note: Opentracing Decorator is in early beta. Use in production at your own risk. Although the library is small and quite stable, some bugs arising from edge cases should be expected.
Let's get started...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
More information about getting started and enabling different features can be found on the Quickstart page.
Features
- Automatic Span tagging of function parameters (Opt-In).
- Automatic Span logging of function return values (Opt-In).
- Works with any OpenTracing compatible tracing client.
Installation
Install with pip:
1 |
|
Opentracing Decorator requires Python 3.6+.
Documentation
Project documentation is available at https://doughepi.github.io/opentracing-decorator/.
For a run-through of all the basics, head over to the QuickStart.
The Developer Interface provides a comprehensive API reference.
To learn more about the OpenTracing standards, check out The OpenTracing Project
Contribute
If you want to contribute to Opentracing Decorator check out the Contributing Guide to learn how to start.
Dependencies
The Opentracing Decorator project relies on these excellent libraries:
opentracing
- The no-op implementation of the OpenTracing standard.flatten-dict
- To support some of the parameter tagging and return logging.
— ⭐️ —
Opentracing Decorator is MIT licensed code. Designed & built in Minneapolis, MN. Used at General Mills.