From 0464f0e08b818b99363c8f53ce5a26b1d0fa5c6f Mon Sep 17 00:00:00 2001 From: Gerry Agbobada Date: Tue, 28 Nov 2023 11:35:56 +0100 Subject: [PATCH] Small array capacity optimization --- examples/otel/cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/otel/cmd/main.go b/examples/otel/cmd/main.go index 749262a..da56ca4 100644 --- a/examples/otel/cmd/main.go +++ b/examples/otel/cmd/main.go @@ -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,