[#XX] tracing: Always sample

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2024-09-04 11:27:22 +03:00
parent 6dd265d949
commit 1681570017

View file

@ -62,6 +62,7 @@ func Setup(ctx context.Context, cfg Config) (bool, error) {
prevProvider := provider prevProvider := provider
provider = sdktrace.NewTracerProvider( provider = sdktrace.NewTracerProvider(
sdktrace.WithSampler(sdktrace.AlwaysSample()),
sdktrace.WithBatcher(exp), sdktrace.WithBatcher(exp),
sdktrace.WithResource(newResource(&cfg)), sdktrace.WithResource(newResource(&cfg)),
) )