Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Fix syntax errors in example code. #33

Merged
merged 1 commit into from
Jun 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The client jar is distributed via maven central, and can be downloaded [here](ht
<dependency>
<groupId>com.indeed</groupId>
<artifactId>java-dogstatsd-client</artifactId>
<version>2.0.12</version>
<version>2.0.16</version>
</dependency>
```

Expand All @@ -31,16 +31,15 @@ public class Foo {
"my.prefix", /* prefix to any stats; may be null or empty string */
"statsd-host", /* common case: localhost */
8125, /* port */
10000, /* Maximum queue size before blocking, so that we prevent OOM */
new String[] {"tag:value"} /* Datadog extension: Constant tags, always applied */
);

public static final void main(String[] args) {
statsd.incrementCounter("foo");
statsd.recordGaugeValue("bar", 100);
statsd.recordGaugeValue("baz", 0.01); /* Datadog extension: support for floating-point gauges */
statsd.recordHistogram("qux", 15) /* Datadog extension: histograms */
statsd.recordHistogram("qux", 15.5) /* ...also floating-point */
statsd.recordHistogramValue("qux", 15); /* Datadog extension: histograms */
statsd.recordHistogramValue("qux", 15.5); /* ...also floating-point */

/* expects times in milliseconds
*/
Expand Down