Commit Graph

237 Commits

Author SHA1 Message Date
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
Bogdan Drutu 6ed98714aa
Remove unused code from componenttest (#2659)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-10 10:44:12 -08:00
Bogdan Drutu 06770d1452
Remove multiproto receiver test example component (#2593)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-09 20:57:33 -08:00
Bogdan Drutu ac9ad4c371
Split example components by component type (#2626)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-09 15:51:57 -08:00
Bogdan Drutu 68871bdd7d
Remove support for deprecated unmarshaler (#2591)
Updates https://github.com/open-telemetry/opentelemetry-collector/issues/2540

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-05 14:03:40 -08:00
Bogdan Drutu 2f38767f72
Remove TestApplicationStartInfo, add a DefaultApplicationStartInfo (#2595)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-05 12:52:23 -08:00
Bogdan Drutu 006d7b5988
Do not expose entire config in the Host API (#2589)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-05 12:11:24 -08:00
Bogdan Drutu 7cdbd1caab
Rename ServiceExtension to just Extension (#2581)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-05 11:26:49 -08:00
Bogdan Drutu bf6dc58854
Do not expose NopHost struct (#2585)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-05 11:04:12 -08:00
Tigran Najaryan 0961efb54f
Fix Shutdown behavior for batchprocessor (#2537)
I added a Shutdown() test that does basic verification of the behavior of the
Shutdown() function. More verifications can be added later.

The test revealed a bug in batchprocessor Shutdown() function which would
not wait until all pending data was drained.
2021-03-02 13:43:58 -05:00
Bogdan Drutu 9383e82f9a
Update docs and code comments to not refer to old consumerdata (#2511)
* Update docs and code comments to not refer to old consumerdata

Updates https://github.com/open-telemetry/opentelemetry-collector/issues/2482

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

* Update processor/README.md

Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>

Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>
2021-02-22 14:38:33 -08:00
Bogdan Drutu 2c8915a349
Rename component.TraceExporter to component.TracesExporter (#2027)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-29 12:53:17 -04: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 a3fa0a9166
Rename processor component.TraceProcessor to component.TracesProcessor, and equivalent Create method feature request (#2026)
Fixes #1975

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-28 18:11:25 -04:00
Bogdan Drutu d7b1122ea2
Use assert.True and assert.False when possible (#2006)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-27 12:01:23 -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
Bogdan Drutu b3a5ceaefa
Change CreateTraceProcessor and CreateMetricsProcessor to be consistent with receivers/logs processor and exporters. (#1785)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-09-15 12:39:38 -07:00
Bogdan Drutu 8422992a20
Allow passing context inside the components builder, add more tests (#1635)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-08-25 11:02:17 -07:00
James Bebbington c8641eea6e
Pass version (& other app info) into components in params struct (#1582)
* Pass Version into components in params struct

* Add TestApplicationStartInfo function
2020-08-24 20:03:07 -07:00
Bogdan Drutu 4be72e8666
Remove logs factories and merge with normal factories (#1569)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-08-24 18:47:52 -07:00
Jay Camp 1e65674799
Update copyright (#1597)
* Update copyright

* rebase
2020-08-19 18:25:44 -07:00
Bogdan Drutu 2e0cfdac15
Remove old receiver factories and receiver base factory (#1583)
* Remove old receiver factories and receiver base factory

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

* Update CHANGELOG.md

Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>

Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>
2020-08-18 11:32:44 -07:00
Dmitrii Anoshin 8e5c6065eb
Migrate componenttest factories to new the interface (#1558) 2020-08-15 13:51:13 -07:00
Bogdan Drutu 8af0a90dcf
Cleanup: Use ReceiverSettings when possible (#1476)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-08-04 14:25:52 -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
Ben Keith 4896d31e1e
Make Logs Type Non-internal (#1456)
This allows Logs to be used in the contrib repo.

Most of the references were fixed by sed + 'make fmt'.
2020-07-29 16:58:32 -04:00
Bogdan Drutu 2c3bca6dca
Move example factories to componenttest (#1300)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-07-22 14:08:41 -07:00
Bogdan Drutu e29ed74617
Add tests to componenttest to make codecov happy (#1231)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-29 15:20:17 -07:00
JBD b3429cf7b2
Merge componentdocs into componenttest (#1199)
* Merge componentdocs into componenttest

componentdocs is used for testing reasons, merging the docs validation code into the test package helps other developers to discover the existence of it.

Rename VerifyComponentDocumentation for CheckDocs to help verbosity and have consistency with the other checker functions in the module.

Signed-off-by: JBD <jbd@google.com>

* Fix lint error
2020-06-26 11:31:28 -07:00
Tomasz Piekarczyk 2826531738
Use stretchr/testify/require instead of t.Fatal (#266) (#1190) 2020-06-25 09:24:19 -07:00
Akash Suresh 01ce74db9c
Add test to ensure existence of component docs (#1090)
Add a simple go test to ensure existence of documentation for enabled components.

**Link to tracking Issue:** #1025
2020-06-12 14:43:20 -04:00
Bruno Garcia 8aa2731844
Remove year from copyright (#964) 2020-05-26 12:44:22 -04:00
Bogdan Drutu a637b41c22
Change entire repo to use the new vanityurl go.opentelemetry.io/collector (#977)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-15 12:04:05 -07:00
Tigran Najaryan 676261f153
Allow components to discover Exporters (#890)
Host.GetExporters now allows components to discover exporters.
This will be used by upcoming receivers that need to cooperate
with exporters.
2020-04-29 21:43:36 -04:00
Tigran Najaryan 9d16f5971e
Declare component Type as a type alias (#860)
We previously used string in the codebase to represent component type
(as it is known to factories and referred to in the config).

Now we have configmodels.Type alias that provides stronger compile-time
type checks.

This is a breaking change for components but fixing the components is easy.

Resolves: https://github.com/open-telemetry/opentelemetry-collector/issues/762
2020-04-24 11:55:04 -04:00
Tigran Najaryan dfe2c814d2
Allow components to discover Extensions (#810)
Host.GetExtensions now allows components to discover extensions.
This will be used by upcoming receivers that need to cooperate
with extensions.
2020-04-09 12:46:45 -04:00
Bogdan Drutu e21cdcf428
Consolidate test host implementations under componenttest (#785)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-04-08 10:26:18 -07:00