Commit Graph

218 Commits

Author SHA1 Message Date
Tigran Najaryan 01d8d945b6
Add Shutdown() function to processors (#379)
Shutdown() method is added so that we can implement proper
pipeline flushing during collector shutdown. This will be done
in a future PR.
2019-10-08 15:56:19 -04:00
Paulo Janotti 3a0aa77705 Handle factories returning nil objects without error (#381)
The factories can be implemented by 3rd party and this gives a better error message instead of a crash.
2019-10-07 22:45:01 -04:00
Tigran Najaryan b125d052db
Add Start() function to Exporter interface (#380)
This is done to have uniformness with Receivers and allow
exporters to communicate with the host (Collector) in the
future.

Implements https://github.com/open-telemetry/opentelemetry-collector/issues/373
2019-10-07 13:28:06 -04:00
Paulo Janotti b27d82408a
Use strict mode to read config (#375)
* Use strict mode to read config

Reading the config using exact matches causes errors for unknown sections reducing the changes of accidental errors on the configuration files.

* Add comments and fix testbed config files
2019-10-02 10:38:29 -07:00
Tigran Najaryan dc6b290e3c
Rename all github paths from opentelemtry-service to opentelemetry-collector (#371)
This is part of renaming task: https://github.com/open-telemetry/opentelemetry-service/issues/352
2019-09-27 17:17:03 -04:00
Tigran Najaryan d03880109b Rename otelsvc to otelcol (#365)
* Rename otelsvc to otcol

This renames the executable and Docker image.

This implements part of https://github.com/open-telemetry/opentelemetry-service/issues/352

Testing done: make, docker-compose up

* PR fixes
2019-09-25 15:56:47 -07:00
Tigran Najaryan 7609eaa71b
Rename OpenTelemetry Service to Collector in docs and comments (#354)
This begins implementation of https://github.com/open-telemetry/opentelemetry-service/issues/352
2019-09-19 11:46:11 -04:00
Paulo Janotti a49376541b Refactor extensions to new config format (#310)
* Refactor extensions to new config format

* Refactored PProf

* Refactor health-check extension

* Refactor service application for extensions

* Refactor zPages and update docker compose example

* Fix staticcheck issue

* Update README and other comments/docs

* Remove tabs from yaml in extension/README.md

* Remove closeFn field from service and related functions

* PR Feedback 00

* Add doc.go to extensiontest package

* Move getAvailablePort to testutils package

* Add tests for testutils functions getting available endpoints
2019-09-05 11:08:00 -07:00
Paulo Janotti 3c3718be3f
Add extensions and service to configuration (#299)
* Add extensions and service to configuration

Adds the extensions and service to the configuration model so "extension components" can be configured in the standard way of data pipelines.

* Rename extension.Component to extension.ServiceExtension
2019-08-27 17:41:27 -07:00
Constance Caramanolis 2acdac0c45 Use Shutdown method instead of passed in stop function (#295)
* Use Shutdown method instead of passed in stop function for exporter shutdown

* Address set of comments

* Remove old comment
2019-08-27 12:31:17 -07:00
Yang Song 52d022665a Move zpages to package zpages instead of internal (#254) 2019-08-14 11:51:49 -07:00
Paulo Janotti 100a230c5c
Remove memory limiting changes (#230)
* Remove memory limiting changes

We paused on that until further design conversations, in order to avoid confusion with this incomplete feature let's remove it from the code base.

* Recover test that covered more than back presssure

* gofmt config_test.go
2019-08-07 07:06:42 -07:00
Yang Song 79957ff63e Add static check and fix all errors (#218)
* Add static check

Fixes #155.

* Fix most staticcheck errors

* More fixes

* Fix id_batcher
2019-08-02 09:11:16 -07:00
Constance Caramanolis 166027710f Improve OC Receiver Documentation (#203)
* First round of receiver and opencensus receiver documentation.

* Undo go mod/sum changes

* Address initial set of comments.

* Address next set of comments.

* Address next set of comments.

* Fix use of server instead of receiver in comment and explain settings can be mix and matched.

* Merged master and fixed mispell error caugh with new tools
2019-08-01 14:24:02 -07:00
Yang Song e87131c79d Fail fast when config is not set (#205) 2019-07-30 08:28:09 -07:00
Tigran Najaryan 7158920260
Honor "disabled" config flag (#181)
We previously had "enabled" config flag which was not honored.
This now implements "disabled" config flag which is honored.

We decided to use "disabled" instead of "enabled" since it is
more common to have enabled items than disabled items in the config
and this reduces litter in the config file.

Github issue: https://github.com/open-telemetry/opentelemetry-service/issues/113
2019-07-19 15:09:19 -04:00
Owais Lone 8905c13995 Replace registration system with an explicit dependency one (#159)
Implements proposal: https://github.com/open-telemetry/opentelemetry-service/issues/138
2019-07-17 09:52:54 -07:00
Paulo Janotti 4c7c3ca571
Refactoring: remove old OC Collector code (#149)
* Refactoring: remove old OC Collector code

Initial phase of removal of old OC code that is still present on the repo.

* Rename package application to service
2019-07-11 14:43:30 -07:00