mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
## 📓 Summary Closes #170728 This work comes from the need to use agent and cloud provider icons in the new Log Detail flyout. Since those icons were already used across the `infra` and `apm` plugins, this was a good opportunity to extract the shared logic into packages. The results of this refactoring are two new packages: - **@kbn/elastic-agent-utils**: exports small utilities and type definition used to parse the icon to render and exploits also across the APM plugin. - **@kbn/custom-icons**: exports custom icons built on top of EuiIcon, encapsulating logic related to mapping from data to the relative icon. Apart from creating the new plugins, this also applies their usage to the `infra` and `apm` plugins, while the Log Explorer flyout will benefit from these working on https://github.com/elastic/kibana/issues/170721. ## 🧪 How to test ### Infra - Navigate to `Infrastructure -> Hosts` - Verify the hosts table correctly renders the cloud provider icon for each table entry. ### APM - Navigate to `APM -> Services`. - Verify each table entry correctly displays the related agent icon. - Navigate to `APM -> Services`. - Click on a service where t a cloud provider icon is expected to appear next to the service name. - Verify the icon is correctly displayed. - Navigate to `APM -> Services -> Service Map`. - Create a new group. - Verify the agent icon is correctly displayed for each entry in the preview list. - Navigate to `APM -> Traces`. - Verify each table entry correctly displays the related agent icon. - Navigate to `APM -> Settings -> Agent Explorer`. - Verify each table entry correctly displays the related agent icon. --------- Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
38 lines
959 B
TypeScript
38 lines
959 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
export {
|
|
isOpenTelemetryAgentName,
|
|
isJavaAgentName,
|
|
isRumAgentName,
|
|
isMobileAgentName,
|
|
isRumOrMobileAgentName,
|
|
isIosAgentName,
|
|
isAndroidAgentName,
|
|
isJRubyAgentName,
|
|
isServerlessAgentName,
|
|
isAWSLambdaAgentName,
|
|
isAzureFunctionsAgentName,
|
|
} from './src/agent_guards';
|
|
|
|
export {
|
|
ELASTIC_AGENT_NAMES,
|
|
OPEN_TELEMETRY_AGENT_NAMES,
|
|
JAVA_AGENT_NAMES,
|
|
RUM_AGENT_NAMES,
|
|
SERVERLESS_TYPE,
|
|
AGENT_NAMES,
|
|
} from './src/agent_names';
|
|
|
|
export type {
|
|
ElasticAgentName,
|
|
OpenTelemetryAgentName,
|
|
JavaAgentName,
|
|
RumAgentName,
|
|
ServerlessType,
|
|
AgentName,
|
|
} from './src/agent_names';
|