Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ScopeName is the instrumentation scope name.
ScopeName = "github.com/rushteam/beauty/pkg/service/cron/trace.go"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cron ¶
type Cron struct { *cron.Cron // contains filtered or unexported fields }
func New ¶
func New(opts ...CronOptions) *Cron
type CronHandlerOptions ¶
type CronHandlerOptions func(cfg *cronHandlerCfg)
func HandlerName ¶
func HandlerName(name string) CronHandlerOptions
type CronOptions ¶
type CronOptions func(c *Cron)
func WitchTraceProvider ¶
func WitchTraceProvider(t trace.TracerProvider) CronOptions
func WithCronHandler ¶
func WithCronHandler(spec string, handler func(ctx context.Context) error, opts ...CronHandlerOptions) CronOptions
func WithMeterProvider ¶
func WithMeterProvider(m metric.MeterProvider) CronOptions
Click to show internal directories.
Click to hide internal directories.