Documentation
¶
Overview ¶
Package diagnostics stores bounded classifications, never raw log messages or attributes.
Index ¶
- Constants
- func Categories() []string
- func Migrations() fs.FS
- func RegisterCategory(name, before string)
- type Collector
- func (c *Collector) Close()
- func (c *Collector) Dropped() uint64
- func (c *Collector) Handler(base slog.Handler) slog.Handler
- func (c *Collector) LastSuccessfulWrite() time.Time
- func (c *Collector) List(ctx context.Context, f Filter) ([]Row, error)
- func (c *Collector) Start()
- func (c *Collector) StorageFailures() uint64
- type Filter
- type Row
Constants ¶
View Source
const ServiceName = "diagnostics.collector"
Variables ¶
This section is empty.
Functions ¶
func Categories ¶
func Categories() []string
Categories returns every error-inventory category in display order.
func Migrations ¶
func RegisterCategory ¶
func RegisterCategory(name, before string)
RegisterCategory adds an error-inventory category for a downstream module: error logs whose message starts with "name:" or "name " are filed under it. It is listed right before the category before (at the end when before is empty or unknown). Registering a known name again does nothing.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func (*Collector) LastSuccessfulWrite ¶
func (*Collector) StorageFailures ¶
Click to show internal directories.
Click to hide internal directories.