Versions in this module Expand all Collapse all v1 v1.0.2 Aug 6, 2024 v1.0.1 Jul 18, 2023 Changes in this version + func GetLogger() *log.Logger + func NewBlocklistKeysFilter(keys ...interface{}) func(*Notice) *Notice + func SetLogger(l *log.Logger) + type Error struct + Backtrace []StackFrame + Message string + Type string + type Metric interface + Start func(c context.Context, name string) (context.Context, Span) + func ContextMetric(c context.Context) Metric + type Notice struct + Context map[string]interface{} + Env map[string]interface{} + Error error + Errors []Error + Id string + Params map[string]interface{} + Session map[string]interface{} + func NewNotice(e interface{}, ctx *gin.Context, depth int) *Notice + func (n *Notice) SetRequest(ctx *gin.Context) + func (n *Notice) String() string + type Notifier struct + Queries *queryStats + Queues *queueStats + Routes *routes + func NewNotifier(projectId int64, projectKey string) *Notifier + func NewNotifierWithOptions(opt *NotifierOptions) *Notifier + func (n *Notifier) AddFilter(fn func(*Notice) *Notice) + func (n *Notifier) Close() error + func (n *Notifier) CloseTimeout(timeout time.Duration) error + func (n *Notifier) Flush() + func (n *Notifier) Notice(err interface{}, ctx *gin.Context, depth int) *Notice + func (n *Notifier) Notify(e interface{}, ctx *gin.Context) + func (n *Notifier) NotifyOnPanic() + func (n *Notifier) SendNotice(notice *Notice) (string, error) + func (n *Notifier) SendNoticeAsync(notice *Notice) + type NotifierOptions struct + APMHost string + DisableAPM bool + DisableBacklog bool + DisableCodeHunks bool + DisableErrorNotifications bool + DisableRemoteConfig bool + Environment string + HTTPClient *http.Client + Host string + KeysBlocklist []interface{} + ProjectId int64 + ProjectKey string + RemoteConfigHost string + Revision string + func (opt *NotifierOptions) Copy() *NotifierOptions + type QueryInfo struct + EndTime time.Time + File string + Func string + Line int + Method string + Query string + Route string + StartTime time.Time + type QueueMetric struct + Errored bool + Queue string + func ContextQueueMetric(c context.Context) *QueueMetric + func NewQueueMetric(c context.Context, name string) (context.Context, *QueueMetric) + func (t *QueueMetric) Start(c context.Context, name string) (context.Context, Span) + func (t *QueueMetric) WithSpan(ctx context.Context, name string, body func(context.Context) error) error + type RemoteConfigJSON struct + ConfigRoute string + PollSec int64 + ProjectId int64 + RemoteSettings []*RemoteSettings + UpdatedAt int64 + type RemoteSettings struct + Enabled bool + Endpoint string + Name string + type RouteMetric struct + ContentType string + Method string + Route string + StatusCode int + func ContextRouteMetric(c context.Context) *RouteMetric + func NewRouteMetric(c context.Context, method, route string) (context.Context, *RouteMetric) + func (t *RouteMetric) Start(c context.Context, name string) (context.Context, Span) + func (t *RouteMetric) WithSpan(ctx context.Context, name string, body func(context.Context) error) error + type Span interface + Finish func() + func ContextSpan(c context.Context) Span + type StackFrame struct + Code map[int]string + File string + Func string + Line int