nameko-chassis provides an opinionated base class for building resilient, observable microservices.
Project description
docs |
|
---|---|
tests |
|
package |
nameko-chassis provides an opinionated base class for building resilient, observable microservices with the nameko framework.
Features
By using nameko_chassis.service.Service, you’ll get:
error reporting using Sentry
integrated metrics endpoint for Prometheus
request tracing with Zipkin
helpers for service discovery (TODO)
Installation
pip install nameko-chassis
You can also install the in-development version with:
pip install https://github.com/Emplocity/nameko-chassis/archive/master.zip
Usage
from nameko.rpc import rpc
from nameko_chassis.service import Service
class MyService(Service):
name = "my_service"
@rpc
def my_method(self):
try:
self.zipkin.update_binary_annotations({
"foo": "bar",
})
except Exception:
self.sentry.captureException()
Documentation
Development
To run the all tests run:
tox
License
This work is released under the Apache 2.0 license.
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
nameko-chassis-0.6.0.tar.gz
(13.3 kB
view hashes)
Built Distribution
Close
Hashes for nameko_chassis-0.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9825c4980a23de4e8f7a01f22dffaa409e84ef0ef189309e2bf1289e90f84be1 |
|
MD5 | c93c17595f8fd664fca3b8f4385a4ee7 |
|
BLAKE2b-256 | 71da9cb1a02a3bbc055cb245eca6ba8c26cbc677bc4937781623a6f8c9844787 |