plack / psgi-specs

PSGI (Perl WSGI) specifications
http://plackperl.org/
133 stars 33 forks source link

PSGI extension for interaction with monitoring #43

Closed robrwo closed 5 years ago

robrwo commented 6 years ago

I am working on some middleware that sends data to statsd, and would like to suggest using the key `psgix.monitor.statsd' for a statsd client that supports some standard methods.

robrwo commented 5 years ago

The module Plack::Middleware::Statsd sets/uses the psgix.monitor.statsdkey, which is also used by Catalyst::Plugin::Statsd.

It is expected that the object would support the common methods that Net::Statsd::Client or Net::Statsd::Tiny do:

miyagawa commented 5 years ago

psgix namespace is used for extensions shared by multiple PSGI server implementations.

The use case doesn't seem to require the psgix namespace, you can rather implement in your own namespace.