Skip to content

Commit

Permalink
Merge pull request #10 from aliyun-sls/remove-default-config
Browse files Browse the repository at this point in the history
remove sampling configure and batchsize
  • Loading branch information
qiansheng91 authored Sep 16, 2022
2 parents 081856f + 594c791 commit af87cdc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions provider/sls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit af87cdc

Please sign in to comment.