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
495c1db39e
Replace deprecate With[Traces|Metrics|Logs][Receiver|Processor|Exporter] with the new definition ( #5759 )
...
Signed-off-by: Bogdan <bogdandrutu@gmail.com>
2022-07-29 11:38:34 -07:00
Alex Boten
9f0d97ca57
add stability level to component factory ( #5580 )
...
* add stability level to component factory
* update docstring
* use a map instead of a single stability level
* apply review feedback
* add tests
* fix impi, add changelog
* add processors, receivers
* fix inconsistency
* set noop to stable
* update calls in deprecated func
2022-07-05 14:02:23 -07:00
Haleygo
317c08ea87
Refactor some new factory func under component/componenttest ( #4940 )
...
* refactor new factory func
* Update service_test.go
Co-authored-by: Bogdan Drutu <lazy@splunk.com>
2022-03-14 06:27:47 -07:00
Bogdan Drutu
83c6ed1366
Move everything from exporterhelper to component. ( #4899 )
...
Updates https://github.com/open-telemetry/opentelemetry-collector/issues/4681
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-02-22 15:29:58 -08:00
Bogdan Drutu
7cdf8c7f1c
Small improvements in componenttest ( #4802 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-02-03 12:03:21 -08:00
Bogdan Drutu
0ef0a9ce7b
Use directly the consumer helper funcs in the other helpers packages. ( #4719 )
...
Try to understand if the Component helper is necessary, or only having the helper funcs is enough.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-01-26 10:59:26 -08:00
Pablo Baeyens
9631ceabb7
Make `component.Factory` inherit `internalinterface.InternalInterface` ( #4338 )
...
* Make `component.Factory` inherit `internalinterface.InternalInterface`
* Add changelog entry
* Add comment on `component.Factory`
2021-11-02 12:09:32 -07:00
José Carlos Chávez
9d3a8a4608
Adds vanity import check ( #4180 )
...
* chore: adds porto and fixes vanity imports.
* chore: fixes target overriding.
* chore: fixes install of porto.
* chore: includes porto as a tool.
* chore: upgrades porto to check internals.
* chore: rebase and update vanity import.
* chore: removes unnecessary space.
* chore: rollsback vanity import in generated files.
2021-10-12 13:47:36 -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
Carlos Alberto Cortez
3f75254ebb
Rename DefaultBuildInfo() to NewDefaultBuildInfo() ( #4129 )
...
* Rename DefaultBuildInfo() to NewDefaultBuildInfo()
* Update CHANGELOG.
* Update CHANGELOG.md
Co-authored-by: Bogdan Drutu <lazy@splunk.com>
2021-09-27 09:09:19 -07:00
alrex
e8bd3be6d4
rename TelemetryCreateSettings -> TelemetrySettings ( #3986 )
2021-09-08 10:22:38 -07:00
alrex
9560f0e779
add TelemetryCreateSettings ( #3984 )
2021-09-08 00:00:09 -07:00
Bogdan Drutu
baf89f11bf
Pass a TracerProvider via construct settings to all the components ( #3592 )
...
Followup PR will use the passed tracer to construct obsreport.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-07-12 11:01:06 -07:00
Bogdan Drutu
e2929a9b2e
Add componenttest.NewNop*CreateSettings to simplify tests ( #3375 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-06-08 10:49:35 -04:00
Patryk Matyjasek
1f7ffab2ca
Replace ExporterCreateParams with ExporterCreateSettings. ( #3164 )
...
Replace all dependencies in Exporters.
Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>
# Conflicts:
# exporter/prometheusremotewriteexporter/factory.go
# Conflicts:
# exporter/fileexporter/factory.go
# exporter/opencensusexporter/factory_test.go
# exporter/otlpexporter/factory_test.go
# exporter/prometheusremotewriteexporter/factory_test.go
# Conflicts:
# CHANGELOG.md
# exporter/kafkaexporter/factory.go
# exporter/opencensusexporter/factory.go
# exporter/otlpexporter/factory.go
# exporter/otlphttpexporter/factory.go
# exporter/zipkinexporter/factory.go
# Conflicts:
# CHANGELOG.md
# component/exporter.go
# exporter/opencensusexporter/factory_test.go
2021-06-02 06:03:35 -07:00
Bogdan Drutu
d1ee31e93c
Small nit fixes, remove unnecessary mock and overrides ( #3150 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-12 14:16:36 -07:00
Bogdan Drutu
ffb332b37b
Add capabilities to consumer, remove from processor ( #2770 )
...
* Add capabilities to consumer, remove from processor
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Rename baseConsumer
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-11 16:13:47 -07:00
Bogdan Drutu
e54cbb44df
Use config.ID for Exporters config ( #3084 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-04 08:09:37 -07:00
Bogdan Drutu
d6a0f9ab76
Fix comments for exported funcs/vars/consts ( #2938 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-14 14:55:23 -07:00
Bogdan Drutu
53832b5246
Add convenience interface in consumertest that implements all consumers ( #2878 )
...
* Add convenience interface in consumertest that implements all consumers
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Add changelog entry, fix license
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-02 15:00:23 -07:00
Bogdan Drutu
e7c74eb2fd
Move configmodels to config ( #2808 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-26 12:14:35 -07:00
Bogdan Drutu
4ae0fc1149
Use Option pattern for componenthelper ( #2778 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-24 13:43:00 -07:00
Bogdan Drutu
0c6757ec71
Rename [Traces|Metrics|Logs]Consumer to [Traces|Metrics|Logs] ( #2761 )
...
* Rename [Traces|Metrics|Logs]Consumer to [Traces|Metrics|Logs]
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update internal/testcomponents/example_exporter.go
Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>
Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>
2021-03-23 08:04:44 -07:00
Bogdan Drutu
c4cf7ebef3
Add new clean nop components and use them in config tests ( #2655 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-10 10:45:18 -08:00