diff --git a/src/components/Dashboard/MetricsReport/index.tsx b/src/components/Dashboard/MetricsReport/index.tsx index 7b9393f75..d1b37b5d0 100644 --- a/src/components/Dashboard/MetricsReport/index.tsx +++ b/src/components/Dashboard/MetricsReport/index.tsx @@ -157,6 +157,7 @@ export const MetricsReport = () => { spanCodeObjectId }, environmentId, + openMainPanel: true, context: { event: SCOPE_CHANGE_EVENTS.METRICS_ENDPOINT_SELECTED, payload: { @@ -185,6 +186,7 @@ export const MetricsReport = () => { if (viewLevel === "services") { changeScope({ span: null, + openMainPanel: true, environmentId: selectedEnvironmentId ?? undefined, context: { event: SCOPE_CHANGE_EVENTS.METRICS_SERVICE_SELECTED, diff --git a/src/utils/actions/changeScope.ts b/src/utils/actions/changeScope.ts index 81e2bfa09..102979ddc 100644 --- a/src/utils/actions/changeScope.ts +++ b/src/utils/actions/changeScope.ts @@ -5,6 +5,7 @@ interface ChangeScopePayload { spanCodeObjectId: string; } | null; environmentId?: string; + openMainPanel?: boolean; context?: { event: string; payload?: Record;