From 79f87fb3f27d34cdaefa47ef7eaa3578b66854b9 Mon Sep 17 00:00:00 2001 From: hujambo-dunia Date: Fri, 6 Oct 2023 14:14:41 -0400 Subject: [PATCH 1/2] Initial commit - specialized logging functions for Sentry.js --- client/src/utils/sentry.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 client/src/utils/sentry.js diff --git a/client/src/utils/sentry.js b/client/src/utils/sentry.js new file mode 100644 index 000000000000..528edc0017a0 --- /dev/null +++ b/client/src/utils/sentry.js @@ -0,0 +1,10 @@ +function logSentryEvent(type, id) { + Galaxy.Sentry?.captureMessage(`TEST - HelpMode - ${type} - ${id}`, { + extra: { + sandbox: true, + feature: "HelpMode", + eventType: type, + eventId: id, + }, + }) +} From 59348ab164787d81fa5eb46f518171457e9bbb58 Mon Sep 17 00:00:00 2001 From: hujambo-dunia Date: Fri, 6 Oct 2023 14:15:22 -0400 Subject: [PATCH 2/2] Link of specialized logging function to Quota Meter vue.js component --- client/src/components/Masthead/QuotaMeter.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/components/Masthead/QuotaMeter.vue b/client/src/components/Masthead/QuotaMeter.vue index fd2851725c0d..259a00c1459a 100644 --- a/client/src/components/Masthead/QuotaMeter.vue +++ b/client/src/components/Masthead/QuotaMeter.vue @@ -40,6 +40,8 @@ import { useConfigStore } from "@/stores/configurationStore"; import { useHelpModeTextStore } from "@/stores/helpmode/helpModeTextStore"; import { useUserStore } from "@/stores/userStore"; +import { logSentryEvent } from "utils/sentry"; + export default { name: "QuotaMeter", data() { @@ -95,6 +97,7 @@ export default { }, methods: { callHelpMode() { + logSentryEvent("hover", "quotaMeterHelpString"); this.helpModeTextStore.addHelpModeText("quotaMeterHelpString"); }, },