github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/metrics/traces.go (about)

     1  package metrics
     2  
     3  import (
     4  	"github.com/ydb-platform/ydb-go-sdk/v3"
     5  )
     6  
     7  func WithTraces(config Config) ydb.Option {
     8  	if config == nil {
     9  		return nil
    10  	}
    11  	config = config.WithSystem("ydb")
    12  
    13  	return ydb.MergeOptions(
    14  		ydb.WithTraceDriver(driver(config)),
    15  		ydb.WithTraceTable(table(config)),
    16  		ydb.WithTraceScripting(scripting(config)),
    17  		ydb.WithTraceScheme(scheme(config)),
    18  		ydb.WithTraceCoordination(coordination(config)),
    19  		ydb.WithTraceRatelimiter(ratelimiter(config)),
    20  		ydb.WithTraceDiscovery(discovery(config)),
    21  		ydb.WithTraceDatabaseSQL(databaseSQL(config)),
    22  		ydb.WithTraceRetry(retry(config)),
    23  	)
    24  }