sentry_error_handler | R Documentation |
Error handler with Sentry reporting
sentry_error_handler(req, res, error, ...)
req |
a plumber request object |
res |
a plumber response object |
error |
an error object |
... |
extra named variables for Sentry |
a list with response payload
## Not run:
sentryR::configure_sentry(Sys.getenv("SENTRY_DSN"))
pr <- plumber::plumb("example_plumber.R")
pr$setErrorHandler(sentryR::sentry_error_handler)
pr$run()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.