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

[processor/groupbyattrs] Updated metric copy to take into consideration custom properties for … #9088

Merged
merged 16 commits into from
May 13, 2022

Conversation

crobertson-conga
Copy link
Contributor

@crobertson-conga crobertson-conga commented Apr 5, 2022

…Histogram, ExponentialHistogram and Sum type metrics.

Description:
Fixing a bug by copying over source temporality change

Link to tracking Issue: 9087

Testing:
Updated tests for the processor to have a histogram metric type.

Documentation: \

Fixes: #9981

@crobertson-conga crobertson-conga requested a review from a team April 5, 2022 15:02
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Apr 5, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: crobertson-conga / name: Chuck Robertson (14aa6f6cd650e65ba9eb4804d5b318076300cfe7)

@pmm-sumo
Copy link
Contributor

pmm-sumo commented Apr 5, 2022

Thank you for the contribution @crobertson-conga Before we can proceed you need to sign the CLA first. Contributing guide has the details on that

@codeboten codeboten changed the title Updated metric copy to take into consideration custom properties for … [processor/groupbyattrs] Updated metric copy to take into consideration custom properties for … Apr 6, 2022
@crobertson-conga
Copy link
Contributor Author

Took me a bit to get the CLA approved, but that is now in place.

pmm-sumo
pmm-sumo previously approved these changes Apr 19, 2022
Copy link
Contributor

@pmm-sumo pmm-sumo left a comment

Choose a reason for hiding this comment

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

Added one more comment on logging but I think it's not a blocker.

Also seems something is off with recent pdata change. Linter and unittest fail. For the latter the error is:

FAIL	github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbyattrsprocessor [setup failed]
Error: processor_test.go:26:2: missing go.sum entry for module providing package go.opentelemetry.io/collector/model/pdata (imported by github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbyattrsprocessor); to add:

Second pair of eyes would be helpful :) Perhaps @jpkrohling could you look as well?

@pmm-sumo pmm-sumo dismissed their stale review April 19, 2022 13:53

pdata usage needs to be fixed

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.

Metrics aren't my strongest side, not sure I can really judge the business here.

processor/groupbyattrsprocessor/processor.go Outdated Show resolved Hide resolved
@crobertson-conga
Copy link
Contributor Author

Is there anything else that needs to be done on this in order to get this in the next release?

@pmm-sumo
Copy link
Contributor

Is there anything else that needs to be done on this in order to get this in the next release?

I think @jpkrohling comment needs to be addressed. I think that copy/pasting (or even better adding it to some common package) the sampled logger is the simplest solution

@crobertson-conga
Copy link
Contributor Author

Okay, I think I've done all the needed things for this now.

@crobertson-conga
Copy link
Contributor Author

Is there anything else that needs to be done here?

@pmm-sumo
Copy link
Contributor

Is there anything else that needs to be done here?

We could use another pair of eyes :) Not sure if @jpkrohling will manage to take a look today, if not, maybe one of the other @open-telemetry/collector-contrib-approvers could help?

@jpkrohling
Copy link
Member

jpkrohling commented Apr 29, 2022

I'll add it to my queue, but I can't promise I'll be able to review this at all.

@crobertson-conga
Copy link
Contributor Author

Fixed the changelog conflict, can we get this merged?

@crobertson-conga
Copy link
Contributor Author

Any chance of getting this in soon?

@dmitryax
Copy link
Member

dmitryax commented May 6, 2022

@crobertson-conga can you please address the latest comments in #9088 (comment)

@dmitryax dmitryax added the ready to merge Code review completed; ready to merge by maintainers label May 6, 2022
@crobertson-conga
Copy link
Contributor Author

Just resolved the changelog conflicts again, can we get this merged?

@pmm-sumo
Copy link
Contributor

This is now labeled as such, which means that one of the maintainers will probably handle that very soon @crobertson-conga

@dmitryax
Copy link
Member

@codeboten pleases help to merge this

@codeboten codeboten merged commit a98cead into open-telemetry:main May 13, 2022
kentquirk pushed a commit to McSick/opentelemetry-collector-contrib that referenced this pull request Jun 14, 2022
…on custom properties for … (open-telemetry#9088)

* Updated metric copy to take into consideration custom properties for Histogram, ExponentialHistogram and Sum type metrics.

* Added error message for unknown data types.

* Fixed parameter count and actually ran make.

* Addressed data object renaming and lint errors.

* Add in sampled logging.

* Updated changelog with fix

* Added monotonic property.

* Removed unnecessary missing metric logs.

* Reverted factory changes.

Co-authored-by: Alex Boten <aboten@lightstep.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prometheusremotewrite exporter doesn't work well with groupbyattrs processor?
5 participants