Commit Graph

11 Commits

Author SHA1 Message Date
Bogdan fbf1e2a09c Revert changes to config.[Receiver|Processor|Exporter|Extension]Settings
Signed-off-by: Bogdan <bogdandrutu@gmail.com>
2022-11-05 10:04:50 -07:00
Bogdan d6ed8246b6 Deprecate all types and funcs in config package
The main reason is to remove the circular dependency between the config (including sub-packages) and component. Here is the current state:
* component depends on config
* config/sub-package[grpc, http, etc.] depends on config & component

Because of this "circular" dependency, we cannot split for example "config" into its own module, only if all the other config sub-packages are also split.

Signed-off-by: Bogdan <bogdandrutu@gmail.com>
2022-11-05 10:04:49 -07:00
Bogdan Drutu f64389d15f
[chore] change config tests to unmarshal only the config for that component (#5895)
The main motivation for this is to allow components (including tests) to not depend on the "service" configuration and be reusable without the otelcol service.

Signed-off-by: Bogdan <bogdandrutu@gmail.com>

Signed-off-by: Bogdan <bogdandrutu@gmail.com>
2022-08-11 06:57:13 -07:00
Shree Prakash 0e02722729
Otel-4633 Replace path.Join method with filepath.Join method (#4638)
* Otel-4633 Replace path.Join method with filepath.Join method

* Otel-4633 Replace path.Join method with filepath.Join method
2022-01-05 11:08:42 -08:00
Bogdan Drutu 7de98eb669
Move test funcs that load entire config to servicetest (#4606)
Updates https://github.com/open-telemetry/opentelemetry-collector/issues/4605

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-12-21 15:11:40 -08:00
alrex afad36e378
rename NewIDWithName -> NewComponentIDWithName (#4151) 2021-09-29 17:09:17 -07:00
James 85b8094e26
Rename `config.NewID` to `config.NewComponentID` and `config.NewIDFromString` to `config.NewComponentIDFromString` (#4137)
This PR is to rename `config.NewID` to `config.NewComponentID` and `config.NewIDFromString` to `config.NewComponentIDFromString` for naming consistency.  

**Link to tracking Issue:** 
Fixes #4105
2021-09-29 10:28:07 -04:00
Min Xia cbd822edfe
enhance memory ballast extension. set ballast size in percentage is supported for containers and physical hosts (#3456) 2021-06-29 12:26:02 -07:00
Bogdan Drutu ba91818866
Rename configtest.LoadConfigFile to configtest.LoadConfigAndValidate (#3306)
Add a new configtest.LoadConfig to simplify testing errors on Validate.

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com
2021-05-28 11:48:26 -04:00
Bogdan Drutu 26bcc26f24
Use config.ID for Extensions config (#3083)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-03 16:09:49 -07:00
Bogdan Drutu 196211a403
Add memory ballast functionality as extension, will remove flag and enable this in a followup (#3009)
* Add memory ballast extension skeleton

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Fix lint issues

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Fix title for Memory Ballast

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Add memory ballast extension implementation

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Rename BallastSize to just Size

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Update readme as well

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-28 11:53:46 -07:00