Skip to content

Commit

Permalink
ddtrace/tracer: replace sprintf with string concat
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahkm committed Dec 17, 2024
1 parent c3339e5 commit 0327e10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ddtrace/tracer/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package tracer
import (
gocontext "context"
"encoding/binary"
"fmt"
"log/slog"
"math"
"os"
Expand Down Expand Up @@ -356,7 +355,7 @@ func newTracer(opts ...StartOption) *tracer {
if v == "" {
v = "unknown"
}
t.statsd.Incr("datadog.tracer.integrations", []string{fmt.Sprintf("integration:%s", name), fmt.Sprintf("integration_version:%s", v)}, 1)
t.statsd.Incr("datadog.tracer.integrations", []string{"integration:" + name, "integration_version:" + v}, 1)
}

t.wg.Add(1)
Expand Down

0 comments on commit 0327e10

Please sign in to comment.