Learn R Programming

sentryR (version 1.1.2)

configure_sentry: Configure Sentry

Description

Configure Sentry

Usage

configure_sentry(
  dsn,
  app_name = NULL,
  app_version = NULL,
  environment = NULL,
  ...
)

Value

populates the .sentry_env environment with character strings

Arguments

dsn

the DSN of a Sentry project.

app_name

name of your application (optional). Default: NULL

app_version

version of your application (optional). Default: NULL

environment

the environment name, such as production or staging (optional). Default: NULL

...

named lists as extra parameters for the Sentry payload

Examples

Run this code
if (FALSE) {
configure_sentry("https://12345abcddbc45e49773bb1ca8d9c533@sentry.io/1234567")
sentry_env$host # sentry.io
}

Run the code above in your browser using DataLab