Commit 9d12d9b
committed
Set
When calling `set_error` to set an error on the current trace, set
the `appsignal.alert_this_error` attribute on it as well.
This attribute has no effect when `set_error` is used by `send_error`
or `send_error_with_context`, which produce single-span traces. The
error in a root span will always be alerted.
This attribute has no effect when not using collector mode. The
attribute is ignored by the agent.
When calling `set_error` on collector mode when the current span is
some arbitrary span in the trace, this attribute ensures that the
error (which was intentionally added to the span) is reported
to AppSignal.alert_this_error when setting errors1 parent 7e9d2b7 commit 9d12d9b
2 files changed
Lines changed: 7 additions & 1 deletion
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments