Browse Source

fix(starfish): Add module filter when fetching action (#52391)

Before
![Screenshot 2023-07-06 at 4 44 20
PM](https://github.com/getsentry/sentry/assets/63818634/16107315-382e-4dc6-8321-c5df0ef56883)
After
![Screenshot 2023-07-06 at 4 44 29
PM](https://github.com/getsentry/sentry/assets/63818634/a2d6c047-a030-4410-b62d-f59008f4829e)
Shruthi 1 year ago
parent
commit
0c01515355

+ 4 - 0
static/app/views/starfish/views/spans/selectors/actionSelector.tsx

@@ -86,6 +86,10 @@ function getEventView(location: Location, moduleName: ModuleName, spanCategory?:
     queryConditions.push('!span.action:""');
   }
 
+  if (![ModuleName.ALL, ModuleName.NONE].includes(moduleName)) {
+    queryConditions.push(`span.module:${moduleName}`);
+  }
+
   if (moduleName === ModuleName.DB) {
     queryConditions.push('!span.op:db.redis');
   }