From 2565db12b0baeef9607b35086f9609c0667d96eb Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 4 Oct 2023 14:49:35 -0400 Subject: [PATCH] Add ClientSearchMiss basic sentry message -- might be better as a custom event for aggregation? --- client/src/components/Panels/ToolBox.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/components/Panels/ToolBox.vue b/client/src/components/Panels/ToolBox.vue index 30700602e42b..39ae9f3774eb 100644 --- a/client/src/components/Panels/ToolBox.vue +++ b/client/src/components/Panels/ToolBox.vue @@ -180,7 +180,15 @@ export default { this.queryPending = true; }, onResults(results, closestTerm = null) { + const Galaxy = getGalaxyInstance(); this.results = results; + if (!this.hasResults) { + Galaxy.Sentry.captureMessage("ClientSearchMiss", { + extra: { + query: this.query, + }, + }); + } this.closestTerm = closestTerm; this.queryFilter = this.hasResults ? this.query : null; this.setButtonText();