Skip to content

Commit

Permalink
Small array capacity optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
gagbo committed Nov 28, 2023
1 parent c17beb0 commit 0464f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/otel/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var (
func main() {
rand.Seed(time.Now().UnixNano())

autometricsInitOpts := make([]autometrics.InitOption, 0)
autometricsInitOpts := make([]autometrics.InitOption, 0, 6)

if os.Getenv("AUTOMETRICS_OTLP_URL") != "" {
autometricsInitOpts = append(autometricsInitOpts,
Expand Down

0 comments on commit 0464f0e

Please sign in to comment.