[Logs UI] Restore call to UsageCollector.countLogs (#67051)

This commit is contained in:
Alejandro Fernández 2020-05-20 13:27:34 +02:00 committed by GitHub
parent a9234ef034
commit 7f88453242
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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' });
@ -47,6 +48,8 @@ export const initLogEntriesSummaryRoute = ({ framework, logEntries }: InfraBacke
parseFilterQuery(query)
);
UsageCollector.countLogs();
return response.ok({
body: logEntriesSummaryResponseRT.encode({
data: {