github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/internal/pool/trace.go (about)

     1  package pool
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/ydb-platform/ydb-go-sdk/v3/internal/stack"
     7  )
     8  
     9  type (
    10  	Trace struct {
    11  		OnNew    func(ctx *context.Context, call stack.Caller) func(limit int)
    12  		OnClose  func(ctx *context.Context, call stack.Caller) func(err error)
    13  		OnTry    func(ctx *context.Context, call stack.Caller) func(err error)
    14  		OnWith   func(ctx *context.Context, call stack.Caller) func(attempts int, err error)
    15  		OnPut    func(ctx *context.Context, call stack.Caller, item any) func(err error)
    16  		OnGet    func(ctx *context.Context, call stack.Caller) func(item any, attempts int, err error)
    17  		onWait   func() func(item any, err error)
    18  		OnChange func(Stats)
    19  	}
    20  )