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

Clean up stale code in receiver/vmmetrics #161

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

songy23
Copy link
Member

@songy23 songy23 commented Jul 16, 2019

Receiver will be loaded through config.go instead of viper.

@codecov-io
Copy link

codecov-io commented Jul 16, 2019

Codecov Report

Merging #161 into master will increase coverage by 2.33%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #161      +/-   ##
==========================================
+ Coverage   71.74%   74.08%   +2.33%     
==========================================
  Files         103       95       -8     
  Lines        6014     5796     -218     
==========================================
- Hits         4315     4294      -21     
+ Misses       1476     1287     -189     
+ Partials      223      215       -8
Impacted Files Coverage Δ
receiver/vmmetricsreceiver/factory.go 81.81% <ø> (+9.09%) ⬆️
receiver/vmmetricsreceiver/metrics_receiver.go 0% <0%> (ø) ⬆️
service/service.go 68.14% <0%> (-0.7%) ⬇️
receiver/factory.go 100% <0%> (ø) ⬆️
config/test_helpers.go 50% <0%> (ø) ⬆️
processor/factory.go 100% <0%> (ø) ⬆️
config/configv2.go 98.64% <0%> (ø) ⬆️
service/builder/pipelines_builder.go 92.72% <0%> (ø) ⬆️
exporter/factory.go 100% <0%> (ø) ⬆️
service/builder/builder.go 0% <0%> (ø) ⬆️
... and 22 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 984d2ad...0c9b822. Read the comment docs.

Copy link
Contributor

@pjanotti pjanotti left a comment

Choose a reason for hiding this comment

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

LGTM

@songy23 songy23 force-pushed the vmmetrics-receiver branch from 0ef4c82 to 5896f5b Compare July 17, 2019 17:13
Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

Generally LGTM, just a comment regarding commit message.

Please see https://github.com/open-telemetry/community/blob/master/CONTRIBUTING.md#code-review and https://chris.beams.io/posts/git-commit/

Rule 3: Capitalize the subject line

I suggest "Clean up stale code in receiver/vmmetrics"

Rule 4: Do not end the subject line with a period

Rule 7: Use the body to explain what and why vs. how

"Receiver will be loaded through config.go instead of viper." answers the the "how" question. The "what" question can be answered by e.g. the following:

Old viper code is removed because it is no longer needed with the new factory/config approach.

receiver/vmmetricsreceiver/metrics_receiver.go Outdated Show resolved Hide resolved
@songy23 songy23 force-pushed the vmmetrics-receiver branch from 5896f5b to c2ba932 Compare July 17, 2019 18:46
@songy23
Copy link
Member Author

songy23 commented Jul 17, 2019

Build failure seems to be due to processor:
https://travis-ci.org/open-telemetry/opentelemetry-service/builds/560085411#L496

processor/attributekeyprocessor/factory.go:26:9: undefined: processor.RegisterFactory
# github.com/open-telemetry/opentelemetry-service/processor/attributekeyprocessor [github.com/open-telemetry/opentelemetry-service/processor/attributekeyprocessor.test]
processor/attributekeyprocessor/factory.go:26:9: undefined: processor.RegisterFactory
processor/attributekeyprocessor/config_test.go:29:9: undefined: config.RegisterTestFactories
processor/attributekeyprocessor/config_test.go:33:38: not enough arguments in call to config.LoadConfigFile
	have (*testing.T, string)
	want (*testing.T, string, map[string]receiver.Factory, map[string]processor.Factory, map[string]exporter.Factory)
processor/attributekeyprocessor/config_test.go:71:13: undefined: processor.GetFactory
processor/attributekeyprocessor/config_test.go:73:38: not enough arguments in call to config.LoadConfigFile
	have (*testing.T, string)
	want (*testing.T, string, map[string]receiver.Factory, map[string]processor.Factory, map[string]exporter.Factory)
processor/attributekeyprocessor/factory_test.go:30:13: undefined: processor.GetFactory
processor/attributekeyprocessor/factory_test.go:38:13: undefined: processor.GetFactory
make: *** [vet] Error 2

@pjanotti can you take a look?

@songy23 songy23 force-pushed the vmmetrics-receiver branch from c2ba932 to fe6dc0a Compare July 17, 2019 18:55
@tigrannajaryan
Copy link
Member

@songy23 the build failure is on a code that I no longer see in master. Can you rebase and see if it helps?

@songy23
Copy link
Member Author

songy23 commented Jul 17, 2019

Never mind #163 fixed it. Rebased.

@songy23 songy23 force-pushed the vmmetrics-receiver branch from fe6dc0a to 41e8ae3 Compare July 17, 2019 21:25
Old viper code is removed because it is no longer needed with the new factory/config approach.
Receiver will be loaded through config.go instead of viper.
@songy23 songy23 force-pushed the vmmetrics-receiver branch from 41e8ae3 to 0c9b822 Compare July 17, 2019 21:30
@songy23
Copy link
Member Author

songy23 commented Jul 17, 2019

Commit message fixed, PTAL @tigrannajaryan

Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

LGTM

@songy23 songy23 changed the title receiver/vmmetrics: Clean up stale code. Clean up stale code in receiver/vmmetrics Jul 17, 2019
@pjanotti pjanotti merged commit 7c82446 into open-telemetry:master Jul 17, 2019
@songy23 songy23 deleted the vmmetrics-receiver branch July 17, 2019 22:37
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
* change jaeger options to functional style

* fix lints

* add interface validaiton
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
* Add Stackdriver Trace exporter for trace.

TODOs for future work is:

* to replace bundler.Bundler

* to add proper tests for the exporter

* to move the exporter to proper repository once it will be created.

* Change to use functions for the exporter initialization instead of
passing option struct directly.
This fix is aliging the same fix for Jaeger (open-telemetry#146, open-telemetry#161)

* Change Option struct to be function type

* Change the original Option struct to be private

* Add line comments to maxMessageEventsPerSpan to leave it for future implementation

* Fix unnessesary expressions specified by `make precommit`

Left errors by `make precommit` in experimental/bridge/opentracing.

* Ran make precommit

* Add new line at EOF

* WIP: Start implementing BatchSpanExporter interfaces

* Change to use RegisterSpanProcessor to register bsp

* Change function names to fit current implementation of sdk

* Removed google.golang.org/api/support/bundler and implement ssp and bsp

* Change spanProcessor as a member of Exporter.

* Fix option names used for BatchSpanProcessor initialization.

* Change Exporter.Shutdown just to unregister spanProcessor.

* Removed copyright statements of OpenCensus.

* Fix small typo and EOF new line

* Fix interfaces of ExportSpan/ExportSpans to meet SpanSyncer/SpanBatcher

* Change to follow context.Context passed in ExportSpan/ExportSpans

* Fix Stackdriver Exporter to hold sync.Once to lock when it is registered and
unregistered.
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
* smartagent: support logs

* smartagent: remove event clients in favor of log pipelines
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
swiatekm pushed a commit to swiatekm/opentelemetry-collector that referenced this pull request Oct 9, 2024
* Updated default collector version

* Updated examples
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.

4 participants