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

0.9.3: Custom label support

Pre-release
Pre-release
Compare
Choose a tag to compare
released this 14 Dec 23:07
· 18 commits to main since this release
d4ccdf4

Each of the metric methods now allow adding extra labels:

testCounter.Increment(
    net.ParseIP("127.0.0.1"),
    metrics.Label("foo", "bar"),
    metrics.Label("somelabel","somevalue")
)

The following rules apply and will cause a panic if violated:

  • Label names and values cannot be empty.
  • The country label name is reserved for GeoIP usage.