Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.9% on proxy.golang.org
Top 0.9% dependent packages on proxy.golang.org
Top 0.9% dependent repos on proxy.golang.org
Top 5.2% forks on proxy.golang.org

proxy.golang.org : github.com/rs/xstats

Package xstats is a generic client for service instrumentation. xstats is inspired from Go-kit's metrics (https://github.com/go-kit/kit/tree/master/metrics) package but it takes a slightly different path. Instead of having to create an instance for each metric, xstats use a single instance to log every metrics you want. This reduces the boiler plate when you have a lot a metrics in your app. It's also easier in term of dependency injection. Talking about dependency injection, xstats comes with a xhandler.Handler integration so it can automatically inject the xstats client within the net/context of each request. Each request's xstats instance have its own tags storage ; This let you inject some per request contextual tags to be included with all observations sent within the lifespan of the request. xstats is pluggable and comes with integration for StatsD and DogStatsD, the Datadog (http://datadoghq.com) augmented version of StatsD with support for tags. More integration may come later (PR welcome).

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/rs/xstats
License: MIT
Latest release: almost 7 years ago
First release: almost 7 years ago
Namespace: github.com/rs
Dependent packages: 31
Dependent repositories: 36
Stars: 82 on GitHub
Forks: 17 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago

    Loading...
    Readme
    Loading...