werkspot / statsd-bundle
Bundle for easy statsd metric reporting
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 37
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4
- domnikl/statsd: ^2.2
- symfony/browser-kit: *
- symfony/finder: *
- symfony/framework-bundle: *
- symfony/http-kernel: *
- symfony/routing: *
- symfony/twig-bridge: *
- symfony/twig-bundle: *
Requires (Dev)
- mockery/mockery: ^0.9.4
This package is auto-updated.
Last update: 2020-10-21 07:18:29 UTC
README
Install
# composer require werkspot/statsd-bundle
Update your config
werkspot_statsd: application_prefix: my_app
Inject statsd clients to services
Use the interface to prepare the service to receive a client
Werkspot\Bundle\StatsdBundle\Client\StatsdClientInterface
Use the client factory and symfony expression language to inject via the container with a secondary prefix
services: test.service: class: App\TestService arguments: - "@=service('werkspot_statsd.client_factory').getClient('instant_connect.service.participant')"