Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts Options) interceptor.WorkerInterceptor
New creates a worker interceptor which will report error to sentry.
Types ¶
type ActivityScopeCustomizer ¶
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 WorkflowScopeCustomizer ¶
Click to show internal directories.
Click to hide internal directories.