diff options
author | vkalintiris <vasilis@netdata.cloud> | 2024-01-30 21:02:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 21:02:09 +0200 |
commit | 18800a4af578e5440574a7f3621d3ece05a824fe (patch) | |
tree | 5a4efc34692c1fa84e19f0b8041e6de3c1fd1861 /contrib | |
parent | 31f0cd1a271067c3a8e4a07c973bceb095008e5a (diff) |
Setup sentry-native SDK. (#16798)
* Setup sentry-native SDK.
* Integrate Sentry into our CI
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* minor fix
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* Include sentry field to the build matrix
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* Update the bundle_sentry flag for all the distros
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* more changes
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* NON mergeable change
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* .
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* Enable fetch content.
* Abort in profile plugin
* Update plugin_profile.cc
* NON MERGABLE COMMIT, just for testing purposes
* NON MERGEABLE CHANGE, jsut for testing purposes
* Bump
* Use breakpad backend
* Multiple changes
- Make DSN variable that we read from the CI from the CI
- Upload debug symbols
- Fix packaging workflow; include new env vars & fix shecllchecks
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* Modify sentry dif command
* fix merge conf
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* Fix merge conflict
* Undo file prefix map.
* Fix typo
* Cleanup stuff.
* Add 256-checksum
* Renable ML for debs
* Finalize CI changes
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* Update rules
* final touches
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* merge the two if, no point to have them sep
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
* Update contrib/debian/rules
Co-authored-by: Tasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com>
* Update contrib/debian/rules
Co-authored-by: Tasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com>
* Add license
* Enable sentry for debian 12.
* Update .github/workflows/packaging.yml
Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
---------
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
Co-authored-by: Tasos Katsoulas <tasos@netdata.cloud>
Co-authored-by: Tasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com>
Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/debian/rules | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/debian/rules b/contrib/debian/rules index 3468e1a7bf..961c88231c 100755 --- a/contrib/debian/rules +++ b/contrib/debian/rules @@ -2,6 +2,7 @@ # Find the arch we are building for, as this determines # the location of plugins in /usr/lib +SRC_DIR = /usr/src/netdata TOP = $(CURDIR)/debian/netdata TEMPTOP = $(CURDIR)/debian/tmp BUILDDIR = $(CURDIR)/debian/build @@ -37,6 +38,20 @@ HAVE_XENSTAT = 1 XENSTAT_CONFIG = -DENABLE_PLUGIN_XENSTAT=On endif +ifeq ($(ENABLE_SENTRY),true) + RELEASE_PIPELINE ?= Unknown + VERSION ?= Unknown + BUILD_DESTINATION ?= Unknown + SENTRY_CONFIG := -DENABLE_SENTRY=On \ + -DNETDATA_SENTRY_ENVIRONMENT=$(RELEASE_PIPELINE) \ + -DNETDATA_SENTRY_RELEASE=$(VERSION) \ + -DNETDATA_SENTRY_DIST=$(BUILD_DESTINATION) \ + -DNETDATA_SENTRY_DSN=$(SENTRY_DSN) +else + SENTRY_CONFIG := -DENABLE_SENTRY=Off +endif + + %: dh $@ --builddirectory=$(BUILDDIR) @@ -56,6 +71,7 @@ override_dh_auto_configure: dh_auto_configure -- -G Ninja \ -DCMAKE_INSTALL_PREFIX=/ \ -DWEB_DIR=/var/lib/netdata/www \ + -DCMAKE_C_FLAGS='-ffile-prefix-map=${SRC_DIR}=${SRC_DIR}' \ -DENABLE_ACLK=On \ -DENABLE_CLOUD=On \ -DENABLE_DBENGINE=On \ @@ -77,11 +93,18 @@ override_dh_auto_configure: -DENABLE_EXPORTER_MONGODB=On \ -DENABLE_BUNDLED_PROTOBUF=Off \ -DENABLE_BUNDLED_JSONC=Off \ + ${SENTRY_CONFIG} \ -DENABLE_BUNDLED_YAML=Off override_dh_auto_test: true +override_dh_strip: + if [ "${ENABLE_SENTRY}" = "true" ] && [ "${UPLOAD_SENTRY}" = "true" ]; then \ + sentry-cli debug-files upload -o netdata-inc -p netdata-agent --force-foreground --log-level=debug --wait --include-sources /usr/src/netdata/debian/netdata/usr/sbin/netdata; \ + fi + dh_strip + override_dh_install: cp -v $(BASE_CONFIG) debian/netdata.conf |