reg

package module
v0.0.0-...-a135f18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithError

func WithError(err error) cfg.Option[*Event]

func WithLogAttributes

func WithLogAttributes(attrs ...slog.Attr) cfg.Option[*Event]

func WithLogLevel

func WithLogLevel(level slog.Level) cfg.Option[*Event]

func WithMetric

func WithMetric(metric func()) cfg.Option[*Event]

func WithSpan

func WithSpan(span trace.Span, attrs ...attribute.KeyValue) cfg.Option[*Event]

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

type Registrar

type Registrar struct {
	// contains filtered or unexported fields
}

func New

func New(logger *slog.Logger, traceAttrs []attribute.KeyValue, logAttrs []any) *Registrar

func (*Registrar) Event

func (r *Registrar) Event(ctx context.Context, message string, opts ...cfg.Option[*Event])

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL