Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(hub *sentry.Hub, opts Options) interceptor.WorkerInterceptor
New creates a worker interceptor which will report error to sentry.
Types ¶
type ActivityErrorSkipper ¶ added in v0.3.0
type ActivityScopeCustomizer ¶ added in v0.4.0
type Options ¶
type Options struct { // ActivityErrorSkipper configures a function to determine if an error from activity should be skipped. // If it returns true, the error is ignored. ActivityErrorSkipper ActivityErrorSkipper // WorkflowErrorSkipper configures a function to determine if an error from workflow should be skipped. // If it returns true, the error is ignored. WorkflowErrorSkipper WorkflowErrorSkipper // ActivityScopeCustomizer applies custom options to a sentry.Scope just before an error is reported from an activity ActivityScopeCustomizer ActivityScopeCustomizer // WorkflowScopeCustomizer applies custom options to a sentry.Scope just before an error is reported from a workflow WorkflowScopeCustomizer WorkflowScopeCustomizer }
type WorkflowErrorSkipper ¶ added in v0.3.0
type WorkflowScopeCustomizer ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.