UNPKG
@rlanz/sentry
Version:
latest (0.3.3)
next (0.2.0-0)
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.2.0-0
0.1.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
A wrapper around the Sentry SDK to make it easier to use in a AdonisJS application
@rlanz/sentry
/
build
/
providers
/
sentry_provider.js
14 lines
(13 loc)
•
301 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
Sentry
}
from
'../src/sentry.js'
;
export
default
class
SentryProvider
{ app;
constructor
(
app
) {
this
.
app
= app; }
async
boot
(
) {
const
config =
this
.
app
.
config
.
get
(
'sentry'
, {});
if
(config.
enabled
) {
Sentry
.
init
(config); } } }