Skip to content

Commit

Permalink
[7.x] [Observability] Fix telemetry for Observability Overview (#83847)…
Browse files Browse the repository at this point in the history
… (#83901)
  • Loading branch information
sorenlouv authored Nov 20, 2020
1 parent 6a972a2 commit 69047a8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/observability/public/pages/landing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const EuiCardWithoutPadding = styled(EuiCard)`
`;

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

const { core } = usePluginContext();
const theme = useContext(ThemeContext);
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/observability/public/pages/overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export function OverviewPage({ routeParams }: Props) {
end: getAbsoluteTime(relativeTime.end, { roundUp: true }) as number,
};

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

const { data: alerts = [], status: alertStatus } = useFetcher(() => {
return getObservabilityAlerts({ core });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export type HasData = (params?: HasDataParams) => Promise<HasDataResponse>;

export type ObservabilityFetchDataPlugins = Exclude<
ObservabilityApp,
'observability' | 'stack_monitoring'
'observability-overview' | 'stack_monitoring'
>;

export interface DataHandler<
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/observability/typings/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type ObservabilityApp =
| 'infra_logs'
| 'apm'
| 'uptime'
| 'observability'
| 'observability-overview'
| 'stack_monitoring'
| 'ux';

Expand Down

0 comments on commit 69047a8

Please sign in to comment.