Skip to content

Conversation

@dineshg13
Copy link
Member

@dineshg13 dineshg13 commented Mar 14, 2025

Description

Add ability to process metrics in schema processor

Link to tracking issue

Fixes

Testing

Documentation

@github-actions github-actions bot added the processor/schema Schema processor label Mar 14, 2025
@dineshg13 dineshg13 marked this pull request as ready for review March 15, 2025 11:24
@dineshg13 dineshg13 requested a review from a team as a code owner March 15, 2025 11:24
Copy link
Contributor

@MovieStoreGuy MovieStoreGuy left a comment

Choose a reason for hiding this comment

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

Only a minor nit, but I am happy with the progress so far.

"go.opentelemetry.io/collector/pdata/pmetric"
)

func TestMetrics_RenameAttributes(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

From memory, there is a test function that allows you to define this information in a yaml form and compare against an expected yaml file for pdata values.

I suspect this might be more useful here since manually validating each is going to be time consuming.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have updated tests to use yaml. Can you please take a look.

@dineshg13 dineshg13 requested a review from MovieStoreGuy March 18, 2025 15:03
@atoulme
Copy link
Contributor

atoulme commented Mar 18, 2025

Please add more tests to cover the error paths.

@atoulme atoulme marked this pull request as draft March 18, 2025 18:07
@dineshg13 dineshg13 marked this pull request as ready for review March 20, 2025 10:14
@dineshg13 dineshg13 requested a review from atoulme March 20, 2025 10:14
@MovieStoreGuy MovieStoreGuy merged commit 816d165 into open-telemetry:main Mar 24, 2025
180 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 24, 2025
Fiery-Fenix pushed a commit to Fiery-Fenix/opentelemetry-collector-contrib that referenced this pull request Apr 24, 2025
)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Add ability to process metrics in schema processor
<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants