Commit Graph

24 Commits

Author SHA1 Message Date
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
gustavo.paiva 5a548e8c75 deprecate obsreport New* methods in favor of MustNew* 2022-11-02 12:26:35 -03:00
Bogdan Drutu f6d15f69e3
Remove deprecated settings from obsreport (#5918)
Signed-off-by: Bogdan <bogdandrutu@gmail.com>

Signed-off-by: Bogdan <bogdandrutu@gmail.com>
2022-08-16 10:35:57 -07:00
Bogdan Drutu fe226f3d86
Deprecate obsreport.[Processor|Exporter]Settings.Level and use MetricsLevel from CreateSettings (#5824)
Signed-off-by: Bogdan <bogdandrutu@gmail.com>
2022-08-05 07:12:23 -07:00
Pablo Baeyens a8ff2dd98c
Enable `errcheck` linter (#4462)
* Check or explicitly ignore all errors

* Enable errcheck

* Use `t.Cleanup` instead of `defer`

* Point to issue on `Set` ignored error
2021-11-23 12:27:32 -08: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
Anthony Mirabella ee7fa0eeed
obsreport: wire up ProcessorCreateSettings for processors using obsreport (#4148)
* obsreport: wire up ProcessorCreateSettings for processors using obsreport

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

* Add ToProcessorCreateSettings() to obsreporttest settings

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

* Fix lint issue

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
2021-09-30 09:15:50 -07:00
Bogdan Drutu 08a3dffb95
Remove unnecessary private function in obsreport (#3790)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-08-09 08:31:39 -07:00
Bogdan Drutu 76d1c70874
Remove obsreport.ProcessorMetricViews, use BuildProcessorCustomMetricName where needed (#3316)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-26 16:05:51 -07:00
Min Xia f72eab07be
Hide OpenCensus reference from public APIs in obsreport package (#3253) 2021-05-26 11:04:00 -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
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
Naseem e5175ed1cf
configure obsReport.NewProcessor with struct (#2669)
* configure obsReport.NewProcessor with struct

fixes #2640

Signed-off-by: naseemkullah <naseem@transit.app>

* s/ProcessorConfig/ProcessorSettings

Signed-off-by: naseemkullah <naseem@transit.app>
2021-03-19 10:37:25 -07:00
Naseem 84f74efda4
Rename `ProcessorObsReport` to `Processor` (#2657)
since obsreport is the package name.

Fixes #2639

Signed-off-by: naseemkullah <naseem@transit.app>
2021-03-10 08:03:40 -08:00
Bogdan Drutu 8e8cb7078a
Remove usage and the global funcs in obsreport (#2161)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-16 12:44:09 -08:00
Bogdan Drutu edf0010c31
Add a struct for processor obs report instead of using package level funcs (#2097)
This is part of a longer effort to move all the obsreport package to use structs for every component type,
that allow configuring the level at the component level (every component instance will have it's own
obsreport struct instance).

Exporter, Receiver and Scrapers will be changed later after the infrastructure is built for Processor.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-11 09:10:43 -08:00
Bogdan Drutu d322a4161b
Remove legacy metrics, they were marked as legacy for ~12 months (#2105)
* Remove legacy metrics, they were marked as legacy for ~12 months

Fixes https://github.com/open-telemetry/opentelemetry-collector/issues/1082

This PR removes:
- Legacy receiver/exporter metrics:
  - otelcol/receiver/received_spans
  - otelcol/receiver/dropped_spans
  - otelcol/receiver/received_timeseries
  - otelcol/receiver/dropped_timeseries
  - otelcol/exporter/received_spans
  - otelcol/exporter/dropped_spans
  - otelcol/exporter/received_timeseries
  - otelcol/exporter/dropped_timeseries
  - otelcol/exporter/received_logs
  - otelcol/exporter/dropped_logs
- For processors remove the legacy metrics (new metrics have the same data, different names):
  - e.g. "spans_dropped" -> "processor/spans_dropped"
  - e.g. "batch_send_size_bytes" -> "processor/batch/batch_send_size_bytes"

All the new metrics were enabled when using the --new-metrics flag. The PR also removes two flags:
- "--new-metrics"
- "--legacy-metrics"
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Update changelog

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

* Fix comments from review

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-10 13:32:27 -08:00
Jay Camp 1e65674799
Update copyright (#1597)
* Update copyright

* rebase
2020-08-19 18:25:44 -07:00
Bogdan Drutu 474407c837
Always add tags for observability, other metrics may use them (#1312)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-07-09 17:13:10 -07:00
Ben Keith faedf1dbdc
Log Support for memorylimiter Processor (#1291)
This adds the ability to use the memorylimiter process in log pipelines.
2020-07-08 10:47:18 -04:00
Bruno Garcia 8aa2731844
Remove year from copyright (#964) 2020-05-26 12:44:22 -04:00
Bogdan Drutu 7375ea2680
Change obsreport to use num spans/datapoints. (#826)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-04-13 10:10:15 -07:00
Paulo Janotti 90f2918e4c
Fix metric names in obsreport (#674)
- Fix export failed for metrics (changed the test to not use the metric itself, so the intended name is captured on the test).
- Fix creation of new processor metrics from legacy views.
2020-03-23 07:41:14 -07:00
Paulo Janotti b9dc8ec8a3
Update processor metrics to obsreport (#606)
Initial updates to migrate processor metrics to obsreport package, ie.: the new metrics.

Cleaned-up a bit some of the processor metrics and spelled out the rule names for new metrics.

Related to https://github.com/open-telemetry/opentelemetry-collector/issues/141

Testing: Added test for the processor common metrics, validated manually that legacy metrics were still working
2020-03-16 09:41:02 -04:00