Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tags and namespace options to listen_for_error (#357)
`Appsignal.listen_for_error` is the only helper that doesn't support custom tags and a custom namespace. This change adds support for the tags and namespace and passes the values along to `Appsignal.send_error`. Did not change this spec to use `Appsignal::Transaction#to_h`, because the change would be a lot more involved as we can't fetch the current transaction from the current thread. To record a transaction we'd need to be able to capture the transaction as it's being created.
- Loading branch information
Showing
2 changed files
with
68 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters