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

Enable unconvert linter, fix errors #1546

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

bogdandrutu
Copy link
Member

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

@codecov
Copy link

codecov bot commented Nov 10, 2020

Codecov Report

Merging #1546 (414cf2b) into master (755c646) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1546      +/-   ##
==========================================
- Coverage   89.37%   89.37%   -0.01%     
==========================================
  Files         353      353              
  Lines       17316    17314       -2     
==========================================
- Hits        15476    15474       -2     
  Misses       1377     1377              
  Partials      463      463              
Flag Coverage Δ
integration 70.96% <ø> (ø)
unit 87.99% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
receiver/collectdreceiver/factory.go 78.26% <ø> (ø)
...oudlogserviceexporter/metricsdata_to_logservice.go 100.00% <100.00%> (ø)
...cloudlogserviceexporter/tracedata_to_logservice.go 100.00% <100.00%> (ø)
exporter/azuremonitorexporter/trace_to_envelope.go 98.41% <100.00%> (ø)
exporter/datadogexporter/metrics/utils.go 100.00% <100.00%> (ø)
exporter/datadogexporter/metrics_translator.go 62.79% <100.00%> (-0.85%) ⬇️
exporter/datadogexporter/translate_traces.go 80.71% <100.00%> (ø)
...tricsreceiver/awsecscontainermetrics/translator.go 100.00% <100.00%> (ø)
receiver/receivercreator/runner.go 48.14% <100.00%> (ø)

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 755c646...414cf2b. Read the comment docs.

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

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

processor/groupbytraceprocessor changes look good to me.

@bogdandrutu bogdandrutu merged commit 1ac9899 into open-telemetry:master Nov 10, 2020
@bogdandrutu bogdandrutu deleted the unspasadsa branch November 10, 2020 20:48
dyladan referenced this pull request in dynatrace-oss-contrib/opentelemetry-collector-contrib Jan 29, 2021
* fix go generate

go generate would not work because a tool (esc) was missing from install-tools.

fixing in preparation for metrics metadata generation.

* Metric metadata generation

This implements the proposal (phase 1) in #985.

Currently just the cpu scraper has been migrated to gather feedback before
moving additional ones.

The plan is to check in the generated_metrics.go files. This makes it easier
when others want to import the code as a library to not have to run the code
generation in a library dependency.

generated_metrics.go will be generated by running `go generate`.

Resolves #985

* metadata improvements

* acronyms (e.g. CpuState) are now formatted correctly (CPUState)
* now handles labels with different semantics (e.g. state label in memory vs cpu)
  * they are referenced in code by unique ids (CPUState, MemState) but their string values are just "state"
* specify which labels are referenced by a given metric

* adding tests

* merge cleanup

* cleanup

* cleanup

* don't do codegen on windows for now

* fix lint issues

* fix coverage checks

* fix ignore

* add docs, code review feedback

* invalid metric type check

* update docs

* cleanup

* doc fix

* make system.memory.usage int sum

* move golint code to third_party dir
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.

3 participants