kolibri-sentry-plugin 0.1.0__py2.py3-none-any.whl → 0.2.0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kolibri_sentry_plugin/__init__.py +1 -1
- kolibri_sentry_plugin/build/kolibri_sentry_plugin.main_stats.json +25 -1
- kolibri_sentry_plugin/kolibri_plugin.py +1 -3
- kolibri_sentry_plugin/options.py +5 -0
- kolibri_sentry_plugin/settings.py +7 -4
- kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.2.0.js +2 -0
- kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.2.0.js.map +1 -0
- kolibri_sentry_plugin-0.2.0.dist-info/AUTHORS.rst +12 -0
- kolibri_sentry_plugin-0.2.0.dist-info/LICENSE +20 -0
- {kolibri_sentry_plugin-0.1.0.dist-info → kolibri_sentry_plugin-0.2.0.dist-info}/METADATA +14 -9
- kolibri_sentry_plugin-0.2.0.dist-info/RECORD +14 -0
- {kolibri_sentry_plugin-0.1.0.dist-info → kolibri_sentry_plugin-0.2.0.dist-info}/WHEEL +1 -1
- kolibri_sentry_plugin/build/kolibri_sentry_plugin_module_stats.json +0 -1
- kolibri_sentry_plugin/build/main_stats.json +0 -1
- kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.1.0.js +0 -2
- kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.1.0.js.map +0 -1
- kolibri_sentry_plugin/static/kolibri_sentry_plugin_module/kolibri_sentry_plugin_module-0.0.1.js +0 -2
- kolibri_sentry_plugin/static/kolibri_sentry_plugin_module/kolibri_sentry_plugin_module-0.0.1.js.map +0 -1
- kolibri_sentry_plugin-0.1.0.dist-info/DESCRIPTION.rst +0 -4
- kolibri_sentry_plugin-0.1.0.dist-info/RECORD +0 -18
- kolibri_sentry_plugin-0.1.0.dist-info/metadata.json +0 -1
- {kolibri_sentry_plugin-0.1.0.dist-info → kolibri_sentry_plugin-0.2.0.dist-info}/entry_points.txt +0 -0
- {kolibri_sentry_plugin-0.1.0.dist-info → kolibri_sentry_plugin-0.2.0.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.
|
1
|
+
__version__ = "0.2.0"
|
@@ -1 +1,25 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"status": "done",
|
3
|
+
"assets": {
|
4
|
+
"kolibri_sentry_plugin.main-0.2.0.js": {
|
5
|
+
"name": "kolibri_sentry_plugin.main-0.2.0.js",
|
6
|
+
"path": "/home/runner/work/kolibri-sentry-plugin/kolibri-sentry-plugin/kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.2.0.js",
|
7
|
+
"publicPath": "autokolibri_sentry_plugin.main-0.2.0.js"
|
8
|
+
},
|
9
|
+
"kolibri_sentry_plugin.main-0.2.0.js.map": {
|
10
|
+
"name": "kolibri_sentry_plugin.main-0.2.0.js.map",
|
11
|
+
"path": "/home/runner/work/kolibri-sentry-plugin/kolibri-sentry-plugin/kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.2.0.js.map",
|
12
|
+
"publicPath": "autokolibri_sentry_plugin.main-0.2.0.js.map"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"chunks": {
|
16
|
+
"kolibri_sentry_plugin.main": [
|
17
|
+
{
|
18
|
+
"name": "kolibri_sentry_plugin.main-0.2.0.js",
|
19
|
+
"path": "/home/runner/work/kolibri-sentry-plugin/kolibri-sentry-plugin/kolibri_sentry_plugin/static/kolibri_sentry_plugin.main/kolibri_sentry_plugin.main-0.2.0.js",
|
20
|
+
"publicPath": "autokolibri_sentry_plugin.main-0.2.0.js"
|
21
|
+
}
|
22
|
+
]
|
23
|
+
},
|
24
|
+
"publicPath": "auto"
|
25
|
+
}
|
@@ -1,6 +1,3 @@
|
|
1
|
-
from __future__ import absolute_import, print_function, unicode_literals
|
2
|
-
|
3
|
-
|
4
1
|
from kolibri.core.hooks import FrontEndBaseSyncHook
|
5
2
|
from kolibri.core.webpack.hooks import WebpackBundleHook
|
6
3
|
from kolibri.plugins import KolibriPluginBase
|
@@ -22,6 +19,7 @@ class SentryPluginAsset(WebpackBundleHook):
|
|
22
19
|
return {
|
23
20
|
"sentryDSN": conf.OPTIONS["Debug"]["SENTRY_FRONTEND_DSN"],
|
24
21
|
"sentryEnv": conf.OPTIONS["Debug"]["SENTRY_ENVIRONMENT"],
|
22
|
+
"sentryReplayEnabled": conf.OPTIONS["Debug"]["SENTRY_REPLAY_ENABLED"],
|
25
23
|
}
|
26
24
|
|
27
25
|
|
kolibri_sentry_plugin/options.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
import sentry_sdk
|
2
1
|
import kolibri
|
3
|
-
|
4
|
-
from sentry_sdk.integrations.django import DjangoIntegration
|
2
|
+
import sentry_sdk
|
5
3
|
from kolibri.utils import conf
|
6
4
|
from kolibri.utils.server import installation_type
|
5
|
+
from sentry_sdk.integrations.django import DjangoIntegration
|
7
6
|
|
8
7
|
|
9
8
|
sentry_sdk.init(
|
@@ -17,4 +16,8 @@ with sentry_sdk.configure_scope() as scope:
|
|
17
16
|
scope.set_tag("mode", conf.OPTIONS["Deployment"]["RUN_MODE"])
|
18
17
|
scope.set_tag("installer", installation_type())
|
19
18
|
|
20
|
-
|
19
|
+
|
20
|
+
# Copy of the Kolibri default src directive plus sentry.io for sending error reports.
|
21
|
+
CSP_CONNECT_SRC = ("'self'", "data:", "blob:", "*.sentry.io") + tuple(
|
22
|
+
conf.OPTIONS["Deployment"]["CSP_HOST_SOURCES"]
|
23
|
+
)
|