configure_sentry: Configure Sentry

Description Usage Arguments Value Examples

View source: R/core.R

Description

Configure Sentry

Usage

1
2
3
4
5
6
7
configure_sentry(
  dsn,
  app_name = NULL,
  app_version = NULL,
  environment = NULL,
  ...
)

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

Value

populates the .sentry_env environment with character strings

Examples

1
2
3
4
5
## Not run: 
configure_sentry("https://12345abcddbc45e49773bb1ca8d9c533@sentry.io/1234567")
sentry_env$host # sentry.io

## End(Not run)

sentryR documentation built on March 20, 2020, 1:09 a.m.