Skip to content

Commit

Permalink
[Logs UI] Restore call to UsageCollector.countLogs (elastic#67051)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández committed May 20, 2020
1 parent 68fad28 commit 3110dd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/plugins/infra/server/routes/log_entries/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
logEntriesSummaryResponseRT,
} from '../../../common/http_api/log_entries';
import { parseFilterQuery } from '../../utils/serialized_query';
import { UsageCollector } from '../../usage/usage_collector';

const escapeHatch = schema.object({}, { unknowns: 'allow' });

Expand Down Expand Up @@ -47,6 +48,8 @@ export const initLogEntriesSummaryRoute = ({ framework, logEntries }: InfraBacke
parseFilterQuery(query)
);

UsageCollector.countLogs();

return response.ok({
body: logEntriesSummaryResponseRT.encode({
data: {
Expand Down

0 comments on commit 3110dd4

Please sign in to comment.