# README
metrics
metrics package helps to create ydb-go-sdk traces with monitoring over prometheus
Usage
import (
"github.com/ydb-platform/ydb-go-sdk/v3"
ydbPrometheus "github.com/ydb-platform/ydb-go-sdk-prometheus"
)
...
// init prometheus registry
registry := prometheus.NewRegistry()
db, err := ydb.Open(
ctx,
os.Getenv("YDB_CONNECTION_STRING"),
ydbPrometheus.WithTraces(registry),
)
# Functions
Coordination makes trace.Coordination with prometheus metrics publishing.
DatabaseSQL makes trace.DatabaseSQL with core metrics publishing.
Discovery makes trace.Discovery with prometheus metrics publishing.
Driver makes Driver with prometheus metrics publishing.
Ratelimiter makes trace.Ratelimiter with prometheus metrics publishing.
Retry makes trace.Retry with prometheus metrics publishing.
Scheme makes trace.Scheme with prometheus metrics publishing.
Scripting makes trace.Scripting with prometheus metrics publishing.
Table makes trace.Trace with prometheus metrics publishing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author