Commit Graph

14 Commits

Author SHA1 Message Date
Patryk Matyjasek 86d40883b4
Standarize Settings, Params and Parameters in Receiver (#3167)
* Replace ReceiverCreateParams with ReceiverCreateSettings.
Replace all dependencies in Receivers.

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>

# Conflicts:
#	component/receiver.go

# Conflicts:
#	exporter/opencensusexporter/opencensus_test.go
#	exporter/prometheusexporter/end_to_end_test.go

* Update changelog

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>

# Conflicts:
#	CHANGELOG.md

# Conflicts:
#	CHANGELOG.md

# Conflicts:
#	CHANGELOG.md

* Add missing file

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>
2021-06-02 06:48:49 -07:00
Bogdan Drutu 6458914bbd
Fix all TraceReceiver usages, use TracesReceiver (#2936)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-14 14:04:41 -07:00
Pablo Baeyens a31ad5bf6c
Move Unmarshaler interface to Config instead of Factory (#2867)
* Make custom unmarshaling a config interface

If a component wants custom unmarshaling they need to add an
Unmarshal method to their Config struct instead of providing
it through the factory.

* Add interface assert for unmarshable configurations

* Document Unmarshal methods

* Mention that config.Unmarshable is an optional interface.

* Use config.Parser on config.Unmarshable interface
Move customUnmarshaler implementation to Unmarshal

* Deprecate factory unmarshaler interface

* Amend comment

* Empty commit to retrigger CI

* Add deprecation comment

* Revert previous commits

Revert "Add deprecation comment"

This reverts commit 4e10ec27f2.

Revert "Amend comment"

This reverts commit ab5ae0af76.

Revert "Deprecate factory unmarshaler interface"

This reverts commit e33c788d55.

* Add fallback to use deprecatedUnmarshaler

* Rename config.Unmarshable to config.CustomUnmarshable; update docs

* Empty commit to retrigger CI
2021-04-12 07:45:45 -07:00
Bogdan Drutu 80a415db43
Move configerror.ErrDataTypeIsNotSupported to componenterror.ErrDataTypeIsNotSupported (#2886)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-06 07:36:46 -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 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 1d38caf3b7
Rename component.TraceReceiver to component.TracesReceiver (#1990)
Fixes #1975

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-28 17:12:37 -07:00
Bogdan Drutu 99cb5b244a
Rename consumer.TraceConsumer to consumer.TracesConsumer (#1981)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-20 10:56:30 -07:00
Jay Camp 1e65674799
Update copyright (#1597)
* Update copyright

* rebase
2020-08-19 18:25:44 -07:00
Bogdan Drutu c8e28eddfe
Add extension factory helper similar with other components (#1485)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-08-05 17:24:14 -07:00
Bogdan Drutu c6991e948e
Add new FactoryUnmarshaler support to all components, deprecate old way (#1468)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-08-04 13:52:42 -07:00
Bogdan Drutu 48c59915e6
Add support in receiver helper for LogsFactory, switch fluent to use helper (#1420)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-07-23 10:45:20 -04:00
Bogdan Drutu 545d64e92b
Small cleanups for the factory helpers (#1352)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-07-14 12:02:48 -07:00
Bogdan Drutu 2195bbc09d
Add helper component to reduce boilerplate (#1334)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-07-13 21:32:06 -07:00