Logs: Move components to dedicated directory (#65936)

* move log-context components to dedicated directory

* fix any

* add right format of lerna.json
This commit is contained in:
Sven Grossmann
2023-04-11 12:19:28 +02:00
committed by GitHub
parent 1261345b81
commit e9b15eff72
14 changed files with 29 additions and 27 deletions

View File

@ -37,7 +37,7 @@ import { queryLogsVolume } from 'app/core/logsModel';
import { getTimeSrv, TimeSrv } from 'app/features/dashboard/services/TimeSrv';
import { getTemplateSrv, TemplateSrv } from 'app/features/templating/template_srv';
import { RowContextOptions } from '../../../features/logs/components/LogRowContextProvider';
import { RowContextOptions } from '../../../features/logs/components/log-context/types';
import { getLogLevelFromKey } from '../../../features/logs/utils';
import { ElasticResponse } from './ElasticResponse';
@ -561,7 +561,7 @@ export class ElasticDatasource
return { data: [] };
}
/**
* The LogRowContextProvider requires there is a field in the dataFrame.fields
* The LogRowContext requires there is a field in the dataFrame.fields
* named `ts` for timestamp and `line` for the actual log line to display.
* Unfortunatly these fields are hardcoded and are required for the lines to
* be properly displayed. This code just copies the fields based on this.timeField