From 4aabfe894f84ddc594fcce75401dfa2cdc3c0d5b Mon Sep 17 00:00:00 2001 From: Nicholas Hulston Date: Wed, 6 Nov 2024 20:29:38 -0500 Subject: [PATCH] test changes --- internal/trace/listener.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/trace/listener.go b/internal/trace/listener.go index 83c0316..e86cb5f 100644 --- a/internal/trace/listener.go +++ b/internal/trace/listener.go @@ -90,6 +90,7 @@ func (l *Listener) HandlerStarted(ctx context.Context, msg json.RawMessage) cont tracer.WithLambdaMode(extensionNotRunning), tracer.WithGlobalTag("_dd.origin", "lambda"), tracer.WithSendRetries(2), + tracer.WithSamplingRules([]tracer.SamplingRule{tracer.RateRule(0.1)}), }, l.tracerOptions...) if l.otelTracerEnabled { provider := ddotel.NewTracerProvider(