Skip to content

Commit 69047a8

Browse files
authored
[7.x] [Observability] Fix telemetry for Observability Overview (#83847) (#83901)
1 parent 6a972a2 commit 69047a8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

x-pack/plugins/observability/public/pages/landing/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const EuiCardWithoutPadding = styled(EuiCard)`
3030
`;
3131

3232
export function LandingPage() {
33-
useTrackPageview({ app: 'observability', path: 'landing' });
34-
useTrackPageview({ app: 'observability', path: 'landing', delay: 15000 });
33+
useTrackPageview({ app: 'observability-overview', path: 'landing' });
34+
useTrackPageview({ app: 'observability-overview', path: 'landing', delay: 15000 });
3535

3636
const { core } = usePluginContext();
3737
const theme = useContext(ThemeContext);

x-pack/plugins/observability/public/pages/overview/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export function OverviewPage({ routeParams }: Props) {
5555
end: getAbsoluteTime(relativeTime.end, { roundUp: true }) as number,
5656
};
5757

58-
useTrackPageview({ app: 'observability', path: 'overview' });
59-
useTrackPageview({ app: 'observability', path: 'overview', delay: 15000 });
58+
useTrackPageview({ app: 'observability-overview', path: 'overview' });
59+
useTrackPageview({ app: 'observability-overview', path: 'overview', delay: 15000 });
6060

6161
const { data: alerts = [], status: alertStatus } = useFetcher(() => {
6262
return getObservabilityAlerts({ core });

x-pack/plugins/observability/public/typings/fetch_overview_data/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export type HasData = (params?: HasDataParams) => Promise<HasDataResponse>;
4747

4848
export type ObservabilityFetchDataPlugins = Exclude<
4949
ObservabilityApp,
50-
'observability' | 'stack_monitoring'
50+
'observability-overview' | 'stack_monitoring'
5151
>;
5252

5353
export interface DataHandler<

x-pack/plugins/observability/typings/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type ObservabilityApp =
99
| 'infra_logs'
1010
| 'apm'
1111
| 'uptime'
12-
| 'observability'
12+
| 'observability-overview'
1313
| 'stack_monitoring'
1414
| 'ux';
1515

0 commit comments

Comments
 (0)