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
}
Directories
¶
| Path | Synopsis |
|---|---|
|
tests
|
|
|
activity_cases/starter
command
|
|
|
activity_cases/worker
command
|
|
|
workflow_cases/starter
command
|
|
|
workflow_cases/worker
command
|
Click to show internal directories.
Click to hide internal directories.