File tree 9 files changed +46
-14
lines changed 9 files changed +46
-14
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,9 @@ services:
233
233
- JVB_BREWERY_MUC
234
234
- MAX_BRIDGE_PARTICIPANTS
235
235
- OCTO_BRIDGE_SELECTION_STRATEGY
236
+ - SENTRY_DSN="${JICOFO_SENTRY_DSN:-0}"
237
+ - SENTRY_ENVIRONMENT
238
+ - SENTRY_RELEASE
236
239
- TZ
237
240
- XMPP_DOMAIN
238
241
- XMPP_AUTH_DOMAIN
@@ -276,6 +279,9 @@ services:
276
279
- JVB_OCTO_PUBLIC_ADDRESS
277
280
- JVB_OCTO_BIND_PORT
278
281
- JVB_OCTO_REGION
282
+ - SENTRY_DSN="${JVB_SENTRY_DSN:-0}"
283
+ - SENTRY_ENVIRONMENT
284
+ - SENTRY_RELEASE
279
285
- TZ
280
286
depends_on :
281
287
- prosody
Original file line number Diff line number Diff line change @@ -390,3 +390,16 @@ RESTART_POLICY=unless-stopped
390
390
391
391
# Authenticate using external service or just focus external auth window if there is one already.
392
392
# TOKEN_AUTH_URL=https://auth.meet.example.com/{room}
393
+
394
+ # Sentry Error Tracking
395
+ # Sentry Data Source Name (Endpoint for Sentry project)
396
+ # Example: https://public:private@host:port/1
397
+ #JVB_SENTRY_DSN=
398
+ #JICOFO_SENTRY_DSN=
399
+ #JIGASI_SENTRY_DSN=
400
+
401
+ # Optional environment info to filter events
402
+ #SENTRY_ENVIRONMENT=production
403
+
404
+ # Optional release info to filter events
405
+ #SENTRY_RELEASE=1.0.0
Original file line number Diff line number Diff line change
1
+ {{ if .Env.SENTRY_DSN | default "0" | toBool }}
2
+ handlers =java.util.logging.ConsoleHandler,io.sentry.jul.SentryHandler
3
+ {{ else }}
1
4
handlers = java.util.logging.ConsoleHandler
5
+ {{ end }}
2
6
3
7
java.util.logging.ConsoleHandler.level = ALL
4
8
java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter
@@ -10,6 +14,7 @@ net.sf.level=SEVERE
10
14
net.java.sip.communicator.plugin.reconnectplugin.level =FINE
11
15
org.ice4j.level =SEVERE
12
16
org.jitsi.impl.neomedia.level =SEVERE
17
+ io.sentry.jul.SentryHandler.level =WARNING
13
18
14
19
# Do not worry about missing strings
15
20
net.java.sip.communicator.service.resources.AbstractResourcesService.level =SEVERE
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
+ export SENTRY_RELEASE="${SENTRY_RELEASE:-$(apt-cache policy jicofo | sed -n '/Installed/p' | sed -e 's/[^:]*: //')}"
4
+
3
5
if [[ -z $JICOFO_AUTH_PASSWORD ]]; then
4
6
echo 'FATAL ERROR: Jicofo auth password must be set'
5
7
exit 1
@@ -11,10 +13,7 @@ if [[ "$JICOFO_AUTH_PASSWORD" == "$OLD_JICOFO_AUTH_PASSWORD" ]]; then
11
13
exit 1
12
14
fi
13
15
16
+ tpl /defaults/logging.properties > /config/logging.properties
14
17
tpl /defaults/jicofo.conf > /config/jicofo.conf
15
18
16
- if [[ ! -f /config/logging.properties ]]; then
17
- cp /defaults/logging.properties /config
18
- fi
19
-
20
19
chown -R jicofo:jitsi /config
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ services:
43
43
- GC_CLIENT_EMAIL
44
44
- GC_CLIENT_ID
45
45
- GC_CLIENT_CERT_URL
46
+ - SENTRY_DSN="${JIGASI_SENTRY_DSN:-0}"
47
+ - SENTRY_ENVIRONMENT
48
+ - SENTRY_RELEASE
46
49
- TZ
47
50
depends_on :
48
51
- prosody
Original file line number Diff line number Diff line change
1
+ {{ if .Env.SENTRY_DSN }}
2
+ handlers =java.util.logging.ConsoleHandler,io.sentry.jul.SentryHandler
3
+ {{ else }}
1
4
handlers = java.util.logging.ConsoleHandler
5
+ {{ end }}
2
6
3
7
java.util.logging.ConsoleHandler.level = ALL
4
8
java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter
@@ -10,6 +14,7 @@ net.sf.level=SEVERE
10
14
net.java.sip.communicator.plugin.reconnectplugin.level =FINE
11
15
org.ice4j.level =SEVERE
12
16
org.jitsi.impl.neomedia.level =SEVERE
17
+ io.sentry.jul.SentryHandler.level =WARNING
13
18
14
19
# Do not worry about missing strings
15
20
net.java.sip.communicator.service.resources.AbstractResourcesService.level =SEVERE
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
+ export SENTRY_RELEASE="${SENTRY_RELEASE:-$(apt-cache policy jigasi | sed -n '/Installed/p' | sed -e 's/[^:]*: //')}"
4
+
3
5
if [[ -z $JIGASI_XMPP_PASSWORD ]]; then
4
6
echo 'FATAL ERROR: Jigasi auth password must be set'
5
7
exit 1
@@ -11,15 +13,13 @@ if [[ "$JIGASI_XMPP_PASSWORD" == "$OLD_JIGASI_XMPP_PASSWORD" ]]; then
11
13
exit 1
12
14
fi
13
15
16
+ tpl /defaults/logging.properties > /config/logging.properties
14
17
tpl /defaults/sip-communicator.properties > /config/sip-communicator.properties
18
+
15
19
if [[ -f /config/custom-sip-communicator.properties ]]; then
16
20
cat /config/custom-sip-communicator.properties >> /config/sip-communicator.properties
17
21
fi
18
22
19
- if [[ ! -f /config/logging.properties ]]; then
20
- cp /defaults/logging.properties /config
21
- fi
22
-
23
23
mkdir -pm777 /tmp/transcripts
24
24
chown jigasi:jitsi /tmp/transcripts
25
25
Original file line number Diff line number Diff line change
1
+ {{ if .Env.SENTRY_DSN | default "0" | toBool }}
2
+ handlers =java.util.logging.ConsoleHandler,io.sentry.jul.SentryHandler
3
+ {{ else }}
1
4
handlers = java.util.logging.ConsoleHandler
5
+ {{ end }}
2
6
3
7
java.util.logging.ConsoleHandler.level = ALL
4
8
java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter
5
9
6
10
net.java.sip.communicator.util.ScLogFormatter.programname =JVB
7
11
8
12
.level =INFO
9
-
10
13
org.jitsi.videobridge.xmpp.ComponentImpl.level =FINE
14
+ io.sentry.jul.SentryHandler.level =WARNING
11
15
12
16
# All of the INFO level logs from MediaStreamImpl are unnecessary in the context of jitsi-videobridge.
13
17
org.jitsi.impl.neomedia.MediaStreamImpl.level =WARNING
14
-
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
3
export LOCAL_ADDRESS=$(ip addr show dev "$(ip route|awk '/^default/ { print $5 }')" | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
4
+ export SENTRY_RELEASE="${SENTRY_RELEASE:-$(apt-cache policy jitsi-videobridge2 | sed -n '/Installed/p' | sed -e 's/[^:]*: //')}"
4
5
5
6
if [[ -z $JVB_AUTH_PASSWORD ]]; then
6
7
echo 'FATAL ERROR: JVB auth password must be set'
@@ -18,10 +19,7 @@ if [[ -f /config/custom-sip-communicator.properties ]]; then
18
19
cat /config/custom-sip-communicator.properties >> /config/sip-communicator.properties
19
20
fi
20
21
22
+ tpl /defaults/logging.properties > /config/logging.properties
21
23
tpl /defaults/jvb.conf > /config/jvb.conf
22
24
23
- if [[ ! -f /config/logging.properties ]]; then
24
- cp /defaults/logging.properties /config
25
- fi
26
-
27
25
chown -R jvb:jitsi /config
You can’t perform that action at this time.
0 commit comments