diff --git a/bridge_test.go b/bridge_test.go index 51b9703..fe55afc 100644 --- a/bridge_test.go +++ b/bridge_test.go @@ -159,13 +159,33 @@ func TestHandlePacket(t *testing.T) { }, }, { name: "histogram with sampling", - in: "foo:0.01|h|@0.1|#tag1:bar,#tag2:baz", + in: "foo:0.01|h|@0.2|#tag1:bar,#tag2:baz", out: Events{ &TimerEvent{ metricName: "foo", value: 0.01, labels: map[string]string{"tag1": "bar", "tag2": "baz"}, }, + &TimerEvent{ + metricName: "foo", + value: 0.01, + labels: map[string]string{"tag1": "bar", "tag2": "baz"}, + }, + &TimerEvent{ + metricName: "foo", + value: 0.01, + labels: map[string]string{"tag1": "bar", "tag2": "baz"}, + }, + &TimerEvent{ + metricName: "foo", + value: 0.01, + labels: map[string]string{"tag1": "bar", "tag2": "baz"}, + }, + &TimerEvent{ + metricName: "foo", + value: 0.01, + labels: map[string]string{"tag1": "bar", "tag2": "baz"}, + }, }, }, { name: "datadog tag extension with multiple colons",