Skip to content

The only tool you need to know what is happening and how to fix it.

fixes

ddux4e1e1170a64b
diff --git a/backend/app/controllers/widget_group.controller.go b/backend/app/controllers/widget_group.controller.go
index 38349548..3b03c5e1 100644
--- a/backend/app/controllers/widget_group.controller.go
+++ b/backend/app/controllers/widget_group.controller.go
@@ -38,7 +38,11 @@ func (c *widgetGroupController) List(ctx *gin.Context) {
ctx.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("failed to find project: %w", err))
return
}
- if project == nil || project.Framework != "opentelemetry" {
+ goFrameworks := map[string]bool{
+ "gin": true, "fiber": true, "chi": true,
+ "fasthttp": true, "stdlib": true, "custom": true,
+ }
+ if project != nil && goFrameworks[project.Framework] {
if err := ensureDefaultWidgetGroups(tx, projectId); err != nil {
ctx.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("failed to create default widget groups: %w", err))
return
diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte
index f9ec09a3..e206bacf 100644
--- a/frontend/src/routes/+page.svelte
+++ b/frontend/src/routes/+page.svelte
@@ -308,10 +308,20 @@ service:
}
}
+ let lastProjectId = $state(projectsState.currentProjectId);
+
onMount(() => {
loadDashboard();
});
+ $effect(() => {
+ const currentId = projectsState.currentProjectId;
+ if (currentId !== lastProjectId) {
+ lastProjectId = currentId;
+ loadDashboard();
+ }
+ });
+
function resetEndpointsSortToImpact() {
setSortState('endpoints', { field: 'impact', direction: 'desc' });
}