Parse a Sentry DSN into its components

parse_dsn(dsn)

Arguments

dsn

the DSN of a Sentry project.

Value

a named list with parsed elements of the DSN

Examples

parse_dsn("https://1234@sentry.io/1")
#> $dsn #> [1] "https://1234@sentry.io/1" #> #> $protocol #> [1] "https" #> #> $public_key #> [1] "1234" #> #> $ignore #> [1] NA #> #> $secret_key #> [1] NA #> #> $host #> [1] "sentry.io" #> #> $project_id #> [1] "1" #>