kibana/packages/kbn-apm-config-loader
Alejandro Fernández Haro 2ad38df5cd
Revert "deepmerge in merging apm-configuration (#179048)" (#180005)
## Summary

Reverting #179048 because it creates a false expectation that
environment vars and config will be merged. This is true for the RUM
agent. However, the NodeJS agent reads the environment vars and discards
any provided config, leading to inconsistent behavior between both
agents.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2024-04-04 13:02:48 -07:00
..
src Revert "deepmerge in merging apm-configuration (#179048)" (#180005) 2024-04-04 13:02:48 -07:00
index.ts Updating APM labels from kibana.yml (#144036) 2022-10-27 11:57:57 +03:00
jest.config.js Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
kibana.jsonc Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
package.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
README.md Add the @kbn/apm-config-loader package (#77855) 2020-09-28 15:30:59 +02:00
tsconfig.json Config loader: remove unecessary properties (#154902) 2023-04-13 11:16:51 -05:00

@kbn/apm-config-loader

Configuration loader for the APM instrumentation script.

This module is only meant to be used by the APM instrumentation script (src/apm.js) to load the required configuration options from the kibana.yaml configuration file with default values.

Why not just use @kbn-config?

@kbn/config is the recommended way to load and read the kibana configuration file, however in the specific case of APM, we want to only need the minimal dependencies before loading elastic-apm-node to avoid losing instrumentation on the already loaded modules.