Skip to content

Commit f0d9fb9

Browse files
cleanups
1 parent 36d8c84 commit f0d9fb9

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

datadog/client_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ func TestClientWithUseDistributions(t *testing.T) {
111111
expectedPacket1 := "request.count:5|c|#answer:42,hello:world\nrequest.dist_rtt:0.1|d|#answer:42,hello:world\n"
112112
select {
113113
case packet := <-packets:
114-
fmt.Println("receive packet", packet)
115114
assert.EqualValues(t, expectedPacket1, string(packet))
116115
case <-time.After(2 * time.Second):
117116
t.Fatal("no response after 2 seconds")
@@ -253,13 +252,10 @@ func startUDPListener(t *testing.T, packets chan []byte) (addr string, closer io
253252
t.Fatal(err)
254253
}
255254

256-
fmt.Println("starting UDP goroutine")
257255
go func() {
258256
for {
259257
packetBytes := make([]byte, 1024)
260-
fmt.Println("call conn.ReadFrom")
261258
n, _, err := conn.ReadFrom(packetBytes)
262-
fmt.Println("read", n, err)
263259
if n > 0 {
264260
packets <- packetBytes[:n]
265261
}

datadog/udp.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package datadog
22

33
import (
4-
"fmt"
54
"net"
65
)
76

@@ -19,7 +18,6 @@ func newUDPWriter(addr string) (*udpWriter, error) {
1918
if err != nil {
2019
return nil, err
2120
}
22-
fmt.Printf("udp conn: %#v\n", conn)
2321
return &udpWriter{conn: conn}, nil
2422
}
2523

@@ -29,7 +27,6 @@ func (w *udpWriter) Write(data []byte) (int, error) {
2927
}
3028

3129
func (w *udpWriter) Close() error {
32-
fmt.Println("call udpWriter.Close")
3330
return w.conn.Close()
3431
}
3532

otlp/handler.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ const (
2727
DefaultFlushInterval = 10 * time.Second
2828
)
2929

30-
// Status: Alpha. This Handler is still in heavy development phase.
30+
// Status: Alpha. This Handler is still in heavy development phase. Do not use
31+
// in production.
3132
//
32-
// Do not use in production.
33-
//
34-
// Handler implements stats.Handler to be used to forward metrics to an
35-
// OpenTelemetry destination. Usually an OpenTelemetry Collector.
33+
// Handler implements stats.Handler to forward metrics to an OpenTelemetry
34+
// destination. Usually an OpenTelemetry Collector.
3635
//
3736
// With the current implementation this Handler is targeting a Prometheus
3837
// based backend or any backend expecting cumulative values.

0 commit comments

Comments
 (0)