Klaus Demo bjoern / 146bad3
Update README.rst Jonas Haag authored a month ago GitHub committed a month ago
1 changed file(s) with 4 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
4141 # Bind to abstract Unix socket: (Linux only)
4242 bjoern.run(wsgi_application, 'unix:@socket_name')
4343
44 # enable statsd metrics
45 # This needs manual compilation with `WANT_STATSD=yes`
46 bjoern.run(wsgi_application, host, port, reuse_port=True, enable_statsd=True)
44 # Enable statsd metrics. See instrumentation.md for details.
45 bjoern.run(wsgi_application, host, port, reuse_port=True, statsd=...)
4746
4847 Alternatively, the mainloop can be run separately::
4948
5049 bjoern.listen(wsgi_application, host, port)
5150 bjoern.run()
5251
53 # with metrics
54 # This needs manual compilation with `WANT_STATSD=yes`
52 # With metrics. See instrumentation.md for details.
5553 bjoern.listen(wsgi_application, host, port)
56 bjoern.run(enable_statsd=True)
54 bjoern.run(statsd=...)
5755
5856 You can also simply pass a Python socket(-like) object. Note that you are responsible
5957 for initializing and cleaning up the socket in that case. ::