Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove legacy metrics, they were marked as legacy for ~12 months #2105

Merged
merged 3 commits into from
Nov 10, 2020

Conversation

bogdandrutu
Copy link
Member

Fixes #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

@codecov
Copy link

codecov bot commented Nov 10, 2020

Codecov Report

Merging #2105 (f1dd2fd) into master (b8cd0ed) will decrease coverage by 0.04%.
The diff coverage is 97.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2105      +/-   ##
==========================================
- Coverage   92.15%   92.10%   -0.05%     
==========================================
  Files         279      279              
  Lines       17077    17024      -53     
==========================================
- Hits        15737    15680      -57     
- Misses        921      925       +4     
  Partials      419      419              
Impacted Files Coverage Δ
internal/collector/telemetry/telemetry.go 81.57% <ø> (-4.43%) ⬇️
obsreport/observability.go 100.00% <ø> (ø)
...eceiver/prometheusreceiver/internal/transaction.go 95.40% <87.50%> (ø)
exporter/exporterhelper/logshelper.go 100.00% <100.00%> (ø)
exporter/exporterhelper/metricshelper.go 86.84% <100.00%> (ø)
exporter/exporterhelper/tracehelper.go 100.00% <100.00%> (ø)
obsreport/obsreport.go 88.88% <100.00%> (-5.78%) ⬇️
obsreport/obsreport_exporter.go 97.72% <100.00%> (-0.19%) ⬇️
obsreport/obsreport_processor.go 97.40% <100.00%> (-0.07%) ⬇️
obsreport/obsreport_receiver.go 100.00% <100.00%> (ø)
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8cd0ed...f1dd2fd. Read the comment docs.

obsreport/obsreport_exporter.go Outdated Show resolved Hide resolved
Fixes open-telemetry#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>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu merged commit d322a41 into open-telemetry:master Nov 10, 2020
@bogdandrutu bogdandrutu deleted the rmlegacy branch November 10, 2020 21:32
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
* Remove several metrics test helpers

* Lint

* Changelog

* Lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete switch to new Collector metrics and avoid inadvertent changes
3 participants