Compare commits

..

1 commit

Author SHA1 Message Date
1681570017 [#XX] tracing: Always sample
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-09-04 11:27:22 +03:00

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)),
) )