Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Werkspot/statsd-bundle

Repository files navigation

Werkspot statsd bundle

Travis build status Scrutinizer Code Quality

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')"