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

Rename feature of the metrics transform processor (metrics and labels) #376

Merged

Conversation

JingboWangGoogle
Copy link
Contributor

@JingboWangGoogle JingboWangGoogle commented Jun 30, 2020

Description: Rename Functionality including renaming the metrics name and the labels

Link to tracking Issue: #332

Testing: 100% coverage within module

Documentation: Detailed comments in code describing the responsibility of each function with a module level README

(This PR is to replace PR #347 because of incorrect and messy commits)

@JingboWangGoogle JingboWangGoogle requested a review from a team June 30, 2020 16:57
@codecov
Copy link

codecov bot commented Jun 30, 2020

Codecov Report

Merging #376 into master will increase coverage by 0.09%.
The diff coverage is 98.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #376      +/-   ##
==========================================
+ Coverage   83.92%   84.02%   +0.09%     
==========================================
  Files         178      180       +2     
  Lines        9520     9594      +74     
==========================================
+ Hits         7990     8061      +71     
- Misses       1202     1204       +2     
- Partials      328      329       +1     
Flag Coverage Δ
#integration 63.22% <0.00%> (-0.10%) ⬇️
#unit 83.81% <98.64%> (+0.09%) ⬆️
Impacted Files Coverage Δ
cmd/otelcontribcol/components.go 0.00% <0.00%> (ø)
processor/metricstransformprocessor/factory.go 100.00% <100.00%> (ø)
...stransformprocessor/metrics_transform_processor.go 100.00% <100.00%> (ø)
receiver/carbonreceiver/transport/tcp_server.go 65.71% <0.00%> (-1.91%) ⬇️

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 4f2808d...10cf1fd. Read the comment docs.

Copy link
Member

@james-bebbington james-bebbington left a comment

Choose a reason for hiding this comment

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

LGTM. Just a few minor comments/nits left

processor/metricstransformprocessor/factory.go Outdated Show resolved Hide resolved
processor/metricstransformprocessor/factory_test.go Outdated Show resolved Hide resolved
processor/metricstransformprocessor/factory_test.go Outdated Show resolved Hide resolved
processor/metricstransformprocessor/factory_test.go Outdated Show resolved Hide resolved
processor/metricstransformprocessor/go.mod Outdated Show resolved Hide resolved
processor/metricstransformprocessor/Makefile Outdated Show resolved Hide resolved
@james-bebbington james-bebbington changed the base branch from master to release/v0.4.x July 3, 2020 06:33
@james-bebbington james-bebbington changed the base branch from release/v0.4.x to master July 3, 2020 06:33
@bogdandrutu bogdandrutu merged commit 46122f9 into open-telemetry:master Jul 6, 2020
@JingboWangGoogle JingboWangGoogle deleted the rename-metrics-label branch July 7, 2020 15:04
wyTrivail referenced this pull request in mxiamxia/opentelemetry-collector-contrib Jul 13, 2020
#376)

* metric processor rename metrics and labels new branch

* remove branches

* removed validations

* lint: remove unused variables related to validation

* updated errors and error testing, optimized code based on comments

* add metrics transform component into components file

* have this built with the main collector

* metric processor rename metrics and labels new branch

* remove branches

* removed validations

* lint: remove unused variables related to validation

* updated errors and error testing, optimized code based on comments

* add metrics transform component into components file

merge components.go

* have this built with the main collector

merge go.mod go.sum

* go.mod resolved bad merge

* go.mod resolved bad merge

* go.sum after testing
mxiamxia referenced this pull request in mxiamxia/opentelemetry-collector-contrib Jul 22, 2020
* Refactor config: pipelines now under service

This change moves 'pipelines' sections from the top level to under the 'service' section.

* Fix typo in old comment
bogdandrutu pushed a commit that referenced this pull request May 12, 2022
* Refactor syslog_input into a single operator

The syslog_input operator was previously implemented
as a builder that built two operators. While this is
a perfectly fine solution, it happens to be the only
place in this codebase where multiple operators are
returned from a builder, excepting plugins.

This new implementation builds the same two operators,
but then wraps them together within a single operator.
This will allow for the eventual simplification of
other code, once plugins are also removed from this
codebase.
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