diff --git a/examples/nameko_demo/demo.py b/examples/nameko_demo/demo.py index 7510951..819e668 100644 --- a/examples/nameko_demo/demo.py +++ b/examples/nameko_demo/demo.py @@ -5,12 +5,16 @@ from nameko.web.handlers import http from nameko.timer import timer from statsd import StatsClient from circuitbreaker import circuit +from chassis.chassis import init_logger, init_statsd, init_sentry +from config.config import Config class DemoChassisService: name = "demo_chassis_service" - statsd = StatsClient('localhost', 8125, prefix='simplebank-nameko_demo') + sentry = init_sentry() + statsd = init_statsd(Config.STATSD_PERMISSION_PREFIX, Config.STATSD_HOST, Config.STATSD_PORT) + logger = init_logger() @http('GET', '/health') @statsd.timer('health')