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

[aws-ecs-metrics-receiver] refactoring for better test coverage and error handling #1738

Merged
merged 3 commits into from
Dec 2, 2020

Conversation

hossain-rayhan
Copy link
Contributor

Description:
This change does some refactoring for better error handling and unit test coverage. We found a bug which was causing seg fault. To avoid such scenarios in future, we add some null checks and better unit tests.

Link to tracking Issue:
174

Testing:
More unit tests were added.
Manual e2e test.

@project-bot project-bot bot added this to In progress in Collector Dec 2, 2020
@codecov
Copy link

codecov bot commented Dec 2, 2020

Codecov Report

Merging #1738 (c1aa100) into master (8762826) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1738   +/-   ##
=======================================
  Coverage   89.89%   89.90%           
=======================================
  Files         376      376           
  Lines       18147    18160   +13     
=======================================
+ Hits        16314    16327   +13     
  Misses       1375     1375           
  Partials      458      458           
Flag Coverage Δ
integration 70.93% <ø> (ø)
unit 88.60% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...ricsreceiver/awsecscontainermetrics/accumulator.go 100.00% <100.00%> (ø)
...rmetricsreceiver/awsecscontainermetrics/metrics.go 100.00% <100.00%> (ø)
...sreceiver/awsecscontainermetrics/metrics_helper.go 100.00% <100.00%> (ø)
...sreceiver/awsecscontainermetrics/stats_provider.go 100.00% <100.00%> (ø)
...eceiver/awsecscontainermetricsreceiver/receiver.go 93.54% <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 8762826...c1aa100. Read the comment docs.

Collector automation moved this from In progress to Reviewer approved Dec 2, 2020
@bogdandrutu bogdandrutu merged commit f043f14 into open-telemetry:master Dec 2, 2020
Collector automation moved this from Reviewer approved to Done Dec 2, 2020
dyladan referenced this pull request in dynatrace-oss-contrib/opentelemetry-collector-contrib Jan 29, 2021
This enchances proto file patching so that we can use gogo custom tags
in proto files.

The references to gogo.proto file is currently uses hard-coded version
number in the path (github.com/gogo/protobuf@v1.3.1/gogoproto/gogo.proto).
We will improve this in the future to automatically use the correct version
number based on our go.mod file.

This will be followed by a change which introduces a custom data type
for trace_id field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants