Commit Graph

237 Commits

Author SHA1 Message Date
Bogdan Drutu c9c253193a
Move everything from exporterhelper to component. (#4899) (#4891)
Updates https://github.com/open-telemetry/opentelemetry-collector/issues/4681

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-02-22 16:19:41 -08: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 004dd4da35
Move everything from processorhelper to component. (#4889)
Updates https://github.com/open-telemetry/opentelemetry-collector/issues/4681

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-02-22 14:23:40 -08:00
Bogdan Drutu 89e0d42c11
Move everything from extensionhelper to component. (#4805)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-02-19 10:48:50 -08:00
Bogdan Drutu c4134ba6f3
Add the StartFunc/ShutdownFunc to component directly (#4803)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-02-18 11:29:49 -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
Anthony Mirabella e080cae46f
Enable configuring telemetry through service config file (#4069)
* consolidate flags for configuring telemetry

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Enable configuring metrics via service config

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Make components take MetricsLevel from TelemetrySettings

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Fix lint errors

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Remove configuration for metrics prefix and adding instance ID

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Make entire Collector available to telemetry initialization, use it to set metrics prefix to buildInfo.Command

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* fix metrics prefix tests

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Fix lint errors

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* config/telemetry: parseLevel() no longer needs to be exported

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* config/telemetry: remove intanceID and prefix flags

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Apply PR feedback

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* address PR feedback

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Avoid linter complaining about use of deprecated functions

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Update CHANGELOG

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
2021-12-16 10:29:28 -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
Pablo Baeyens 883afc505d
Remove BaseProcessorFactory, force using helper (#4175)
* Add internalinterface package

This adds a general InternalInterface to make an interface impossible
to implement.

* Use internalinterface.InternalInterface for Processor as a test

* Add Changelog note

* need to use -> must use

* Add small unit test

Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-11-01 17:54:12 -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
Bogdan Drutu 4bd1262f00
Bump otel dependencies to latest (#4167)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-10-04 08:48:06 -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 ad5b3235d1
add MeterProvider to TelemetrySettings (#4031) 2021-09-14 11:17:33 +03: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 9a7bccea3e
Change SpansCount to SpanCount everywhere (#3550)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-07-01 16:57:42 -07:00
Bogdan Drutu c63d0c68cd
Move pdata in the new package (#3483)
The new module go.opentelemetry.io/collector/model will be created later when the internal data will
also be moved.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-06-25 01:17:31 +03: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 017aa1dad7
Standarize Settings, Params and Parameters in Processors (#3181)
* Replace ProcessorCreateParams with ProcessorCreateSettings.
Replace all dependencies in Processors.

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

* Update changelog

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

# Conflicts:
#	CHANGELOG.md

# Conflicts:
#	CHANGELOG.md

Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-06-02 06:49:04 -07:00
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
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
Patryk Matyjasek 827f5e1702
Standarize Settings, Params and Parameters in Extensions (#3294)
* Replace ExtensionCreateParams with ExtensionCreateSettings.
Replace all dependencies in Extensions.

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

* Update changelog

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

# Conflicts:
#	CHANGELOG.md

* Add missing files

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>
2021-06-01 22:08:31 -07:00
Bogdan Drutu 2d48457b64
Rename [Trace|Log]Data to Traces|Logs in internal package testdata (#3205)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-17 15:01:33 -07:00
Pablo Baeyens 29b576e7d3
Fix some errcheck errors (#2881)
* Check testbed errors

* Check some more errors

* Empty commit to retrigger CI

* Address comments on hostmetricsreceiver

* Rewrite some errchecking code

* Inline ifs

* Inline ifs and change log.Fatalf + Error() calls by log.Fatal
2021-05-14 15:04:18 -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
Dhruv Vora d5891ec866
Update function descriptions (#3025)
* Made changes to componenttest package

* Changes to nop_exporter_test

* Reverted the changes in exporter and nop_exporter

* Updated comments for the Factory

* reverted usage of singletons
2021-05-12 11:35:22 -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 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 665e9657ac
Use config.ID for Processors config (#3077)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-03 14:46:10 -07:00
Bogdan Drutu faa78aa7f6
Use config.ComponentID for Receivers config (#2870)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-30 16:29:10 -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 c6c758c1cf
Fix all TraceProcessor usages, use TracesProcessor (#2935)
* Fix all TraceProcessor usages, use TracesProcessor

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

* Update changelog

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-14 14:04:27 -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 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 42708751ec
Allow adding new signals in ProcessorFactory by forcing everyone to embed BaseProcessorFactory (#2885)
* Allow adding new signals in ProcessorFactory by forcing everyone to embed BaseProcessorFactory

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

* Update component/processor.go

Co-authored-by: Jay Camp <jay.r.camp@gmail.com>

Co-authored-by: Jay Camp <jay.r.camp@gmail.com>
2021-04-02 14:23:27 -07:00
Pablo Baeyens 08a18d5b9f
Add missing documentation (#2837)
* Add comment linter

For now I am excluding
- Internal packages
- Testbed packages
- Constant blocks (since the type docs is usually enough)

* Document consumer folder

* Document processor folder

* Document component folder

* Document config folder

* Document service folder

* Add nosec directive for testbed

* Document testutil folder

* Document receiver folder

* Document exporter folder

* Document cmd/schemagen folder

* Document translator folder

* Document cmd/mdatagen

* Document obsreport folder

* Remove outdated package config comment

* Update .golangci.yml

* Update .golangci.yml

Co-authored-by: Bogdan Drutu <lazy@splunk.com>
2021-03-31 16:38:40 -07:00
Bogdan Drutu fe86ab5cba
Implement Validate() in ReceiverSettings, easy transition (#2865)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-31 08:57:14 -07:00
Bogdan Drutu 2605ec4a87
Refactor ConfigValidator (#2856)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-30 15:18:02 -07:00
Min Xia 2c170341f6
Add validate interface in configmodels to force each component do configuration validation (#2802) 2021-03-30 10:20:01 -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 90d7a27040
Remove ErrorWaitingHost from componenttest (#2582)
Updates https://github.com/open-telemetry/opentelemetry-collector/issues/2540

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-25 14:54:32 -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
Min Xia 5887856a04
Clean up CheckDocs from componenttest which has not been used anymore (#2719) 2021-03-16 17:54:50 -07:00
Min Xia cadd84d04e
Create binary to run CheckDocs in componenttest and remove it from unit test in service module (#2703) 2021-03-15 15:15:57 -07:00
Bogdan Drutu 4e7df02067
Move example components to internal package (#2666)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-11 08:40:21 -08: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
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