You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A library that provides an interface for sending metrics from your script, application, or service. Metrics consist of a name, value, and optionally some tags that are made up of key/value pairs.
6
6
@@ -22,15 +22,21 @@ Generally you will instantiate one of the above clients and then write metrics t
The above code would result in `myprefix.requests.count` with a value of `1` showing up in DataDog if you have [`dogstatsd`](https://docs.datadoghq.com/guides/dogstatsd/) running locally. See the [`Client`](https://godoc.org/github.com/istreamlabs/go-metrics/#Client) interface for a list of available metrics methods.
50
+
The above code would result in `myprefix.requests.count` with a value of `1` showing up in DataDog if you have [`dogstatsd`](https://docs.datadoghq.com/guides/dogstatsd/) running locally and an environment variable `env` set to `prod`, otherwise it will print metrics to standard out. See the [`Client`](https://godoc.org/github.com/istreamlabs/go-metrics/metrics/#Client) interface for a list of available metrics methods.
45
51
46
52
Also provided are useful clients for testing. For example, the following asserts that a metric with the given name, value, and tag was emitted during a test:
47
53
@@ -61,7 +67,7 @@ func TestFoo(t *testing.T)
61
67
}
62
68
```
63
69
64
-
For more information and examples, see the [godocs](https://godoc.org/github.com/istreamlabs/go-metrics/).
70
+
For more information and examples, see the [godocs](https://godoc.org/github.com/istreamlabs/go-metrics/metrics).
0 commit comments