From 594c791daa630fed95a9dcab9c528d6332ca26f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E4=B9=98?= Date: Fri, 16 Sep 2022 17:37:35 +0800 Subject: [PATCH] remove sampling configure and batchsize --- provider/sls.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/provider/sls.go b/provider/sls.go index aeda63a..484b19a 100644 --- a/provider/sls.go +++ b/provider/sls.go @@ -345,10 +345,8 @@ func (c *Config) initTracer(traceExporter trace.SpanExporter, stop func(), confi } // 建议使用AlwaysSample全量上传Trace数据,若您的数据太多,可以使用sdktrace.ProbabilitySampler进行采样上传 tp := sdktrace.NewTracerProvider( - sdktrace.WithSampler(sdktrace.AlwaysSample()), sdktrace.WithBatcher( traceExporter, - sdktrace.WithMaxExportBatchSize(10), ), sdktrace.WithIDGenerator(config.IDGenerator), sdktrace.WithResource(c.Resource),