package
0.0.0-20240707112111-9cf347bf49e2
Repository: https://github.com/facebookincubator/go-belt.git
Documentation: pkg.go.dev
# Functions
RandomEventID returns a new random EventID.
# Constants
EntryPropertyErrorEvent is a logger.EntryProperty implementation which marks that the event is an error event.
EntryPropertyErrorMonitoringEventEntry is a logger.EntryProperty implementation which marks that the entry is an error monitoring event.
EntryPropertyPanicEvent is a logger.EntryProperty implementation which marks that the event is a panic event.
FieldPropEnvironment means the field contains information about the environment (prod, dev etc).
FieldPropRelease means the field contains information about the release version.
FieldPropServerName means the field contains information about the server name.
# Structs
Breadcrumb contains auxiliary information about something that happened before an Event happened, which supposed to help to investigate the Event.
ErrError is a wrapper of an Event which implements `error` in case if the Event conveys an error event.
ErrPanic is a wrapper of an Event which implements `error` in case if the Event conveys a panic event.
Event is the full collection of data collected on a specific event to be reported (like a panic or an error).
Exception is the immediate information about what gone wrong.
Package contains information about a software package.
PreHookResult is the result of a PreHook.
Tag contains information about a tag.
User contains information about an user.
# Interfaces
Emitter is a sender of already generated Events.
ErrorMonitor is an observability Tool (belt.Tool) which allows to report about any exceptions which happen for debugging.
Hook is a pre-processor for an Event which is ran before sending it.
PreHook is similar to a Hook, but is used before all the information is collected and the Event is generated.
# Type aliases
Emitters is a collection of Emitter-s.
EventID is an unique ID (usually UUIDv4) assigned to an issued event.
Goroutine is a full collection of data collected on a specific goroutine.
Hooks is a collection of Hook-s.
HTTPRequest contains information about an HTTP request.
PreHooks is a collection of PreHook-s.