Explore: Add link to logs from trace span (#28229)

* Add trace to logs link

* Do a bit of refactor and allow for custom time range in split

* Add margin and noopener to the link

* Fix tests

* Fix tests
This commit is contained in:
Andrej Ocenas
2020-10-15 00:03:14 +02:00
committed by GitHub
parent 26e2faa779
commit c8658f3ee8
19 changed files with 300 additions and 11 deletions

View File

@@ -56,6 +56,7 @@ export class GrafanaBootConfig implements GrafanaConfig {
expressions: false,
meta: false,
ngalert: false,
traceToLogs: false,
};
licenseInfo: LicenseInfo = {} as LicenseInfo;
rendererAvailable = false;

View File

@@ -19,6 +19,16 @@ export interface DataSourceSrv {
* Returns metadata based on UID.
*/
getDataSourceSettingsByUid(uid: string): DataSourceInstanceSettings | undefined;
/**
* Get all data sources
*/
getAll(): DataSourceInstanceSettings[];
/**
* Get all data sources except for internal ones that usually should not be listed like mixed data source.
*/
getExternal(): DataSourceInstanceSettings[];
}
let singletonInstance: DataSourceSrv;