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/filterprocessor] Ability to filter spans #6341

Merged
merged 45 commits into from
Jun 23, 2022

Conversation

boostchicken
Copy link
Member

@boostchicken boostchicken commented Nov 16, 2021

Signed-off-by: John dorman@overlooked.us

Description:

Added the ability to use the filterprocessor for spans. The documentation for filter processor currently claims it can do this, however it cannot.

Issue
#5838 ... plus many more
Testing:
Tested locally, all filtering logic is tested by the filterspan internal package, this is just a re-use of that
There are also unit tests that test the filter logic, beyond the filterspan code
Documentation:
Added README.md with a usage example as well as pointing to complete documentation in the attributes processor.

@boostchicken boostchicken requested review from a team and tigrannajaryan November 16, 2021 09:10
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 16, 2021

CLA Signed

The committers listed above are authorized under a signed CLA.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 16, 2021

CLA Signed

The committers listed above are authorized under a signed CLA.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 16, 2021

CLA Signed

The committers listed above are authorized under a signed CLA.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 16, 2021

CLA Signed

The committers listed above are authorized under a signed CLA.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 16, 2021

CLA Signed

The committers listed above are authorized under a signed CLA.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 16, 2021

CLA Signed

The committers listed above are authorized under a signed CLA.

@linux-foundation-easycla
Copy link

CLA Not Signed

  • ❌ The commit (4de3f68448e81135c88a6044b25e5a4c9671269d ,18330a9480dbd3242894754422315491415fbb2e ,4df275064ad5df97366262e7e2cd65f5210e06fc ,08a3e07d0b6f0405715528c65899301c0cca9669 ,50390afd6adfec373748ef7ae80241395c670801 ,afbd8e6206c497a470f5e078f9dd816c057c5bb0 ,6810c1133059513d2e9ea060fd3bf5db48fc2f90) is missing the User's ID, preventing the EasyCLA check. Consult GitHub Help to resolve.For further assistance with EasyCLA, please submit a support request ticket.

@linux-foundation-easycla
Copy link

CLA Not Signed

  • ❌ The commit (4de3f68448e81135c88a6044b25e5a4c9671269d ,18330a9480dbd3242894754422315491415fbb2e ,4df275064ad5df97366262e7e2cd65f5210e06fc ,08a3e07d0b6f0405715528c65899301c0cca9669 ,50390afd6adfec373748ef7ae80241395c670801 ,afbd8e6206c497a470f5e078f9dd816c057c5bb0 ,6810c1133059513d2e9ea060fd3bf5db48fc2f90 ,86ca053979d4a463134bd2bbf9c8fbe490db966d) is missing the User's ID, preventing the EasyCLA check. Consult GitHub Help to resolve.For further assistance with EasyCLA, please submit a support request ticket.

@linux-foundation-easycla
Copy link

CLA Not Signed

  • ❌ The commit (4de3f68448e81135c88a6044b25e5a4c9671269d ,18330a9480dbd3242894754422315491415fbb2e ,4df275064ad5df97366262e7e2cd65f5210e06fc ,08a3e07d0b6f0405715528c65899301c0cca9669 ,50390afd6adfec373748ef7ae80241395c670801 ,afbd8e6206c497a470f5e078f9dd816c057c5bb0 ,6810c1133059513d2e9ea060fd3bf5db48fc2f90 ,86ca053979d4a463134bd2bbf9c8fbe490db966d ,84dc9a96c6db52a42f90d23762b7e0ed27cfd8d6) is missing the User's ID, preventing the EasyCLA check. Consult GitHub Help to resolve.For further assistance with EasyCLA, please submit a support request ticket.

@linux-foundation-easycla
Copy link

CLA Not Signed

  • ❌ The commit (4de3f68448e81135c88a6044b25e5a4c9671269d ,18330a9480dbd3242894754422315491415fbb2e ,4df275064ad5df97366262e7e2cd65f5210e06fc ,08a3e07d0b6f0405715528c65899301c0cca9669 ,50390afd6adfec373748ef7ae80241395c670801 ,afbd8e6206c497a470f5e078f9dd816c057c5bb0 ,6810c1133059513d2e9ea060fd3bf5db48fc2f90 ,86ca053979d4a463134bd2bbf9c8fbe490db966d ,84dc9a96c6db52a42f90d23762b7e0ed27cfd8d6 ,ef875183c632d1f8c555bb53318c4a74ef09faac) is missing the User's ID, preventing the EasyCLA check. Consult GitHub Help to resolve.For further assistance with EasyCLA, please submit a support request ticket.

@linux-foundation-easycla
Copy link

CLA Not Signed

  • ❌ The commit (4de3f68448e81135c88a6044b25e5a4c9671269d ,18330a9480dbd3242894754422315491415fbb2e ,4df275064ad5df97366262e7e2cd65f5210e06fc ,08a3e07d0b6f0405715528c65899301c0cca9669 ,50390afd6adfec373748ef7ae80241395c670801 ,afbd8e6206c497a470f5e078f9dd816c057c5bb0 ,6810c1133059513d2e9ea060fd3bf5db48fc2f90 ,86ca053979d4a463134bd2bbf9c8fbe490db966d ,84dc9a96c6db52a42f90d23762b7e0ed27cfd8d6 ,ef875183c632d1f8c555bb53318c4a74ef09faac ,b78c2a0205f10830ae22622a9e8dc803fac09d2f) is missing the User's ID, preventing the EasyCLA check. Consult GitHub Help to resolve.For further assistance with EasyCLA, please submit a support request ticket.

@linux-foundation-easycla
Copy link

CLA Not Signed

  • ❌ The commit (4de3f68448e81135c88a6044b25e5a4c9671269d ,18330a9480dbd3242894754422315491415fbb2e ,4df275064ad5df97366262e7e2cd65f5210e06fc ,08a3e07d0b6f0405715528c65899301c0cca9669 ,50390afd6adfec373748ef7ae80241395c670801 ,afbd8e6206c497a470f5e078f9dd816c057c5bb0 ,6810c1133059513d2e9ea060fd3bf5db48fc2f90 ,86ca053979d4a463134bd2bbf9c8fbe490db966d ,84dc9a96c6db52a42f90d23762b7e0ed27cfd8d6 ,ef875183c632d1f8c555bb53318c4a74ef09faac ,b78c2a0205f10830ae22622a9e8dc803fac09d2f ,ae077274ab3aea54a1a73659ec58531b95df6a78) is missing the User's ID, preventing the EasyCLA check. Consult GitHub Help to resolve.For further assistance with EasyCLA, please submit a support request ticket.

@linux-foundation-easycla
Copy link

CLA Not Signed

  • ❌ The commit (4de3f68448e81135c88a6044b25e5a4c9671269d ,18330a9480dbd3242894754422315491415fbb2e ,4df275064ad5df97366262e7e2cd65f5210e06fc ,08a3e07d0b6f0405715528c65899301c0cca9669 ,50390afd6adfec373748ef7ae80241395c670801 ,afbd8e6206c497a470f5e078f9dd816c057c5bb0 ,6810c1133059513d2e9ea060fd3bf5db48fc2f90 ,86ca053979d4a463134bd2bbf9c8fbe490db966d ,84dc9a96c6db52a42f90d23762b7e0ed27cfd8d6 ,ef875183c632d1f8c555bb53318c4a74ef09faac ,b78c2a0205f10830ae22622a9e8dc803fac09d2f ,ae077274ab3aea54a1a73659ec58531b95df6a78 ,8f4dbbf2ffdedea1a489c87127aa5a1590b5cc4d) is missing the User's ID, preventing the EasyCLA check. Consult GitHub Help to resolve.For further assistance with EasyCLA, please submit a support request ticket.

1 similar comment
@linux-foundation-easycla
Copy link

CLA Not Signed

  • ❌ The commit (4de3f68448e81135c88a6044b25e5a4c9671269d ,18330a9480dbd3242894754422315491415fbb2e ,4df275064ad5df97366262e7e2cd65f5210e06fc ,08a3e07d0b6f0405715528c65899301c0cca9669 ,50390afd6adfec373748ef7ae80241395c670801 ,afbd8e6206c497a470f5e078f9dd816c057c5bb0 ,6810c1133059513d2e9ea060fd3bf5db48fc2f90 ,86ca053979d4a463134bd2bbf9c8fbe490db966d ,84dc9a96c6db52a42f90d23762b7e0ed27cfd8d6 ,ef875183c632d1f8c555bb53318c4a74ef09faac ,b78c2a0205f10830ae22622a9e8dc803fac09d2f ,ae077274ab3aea54a1a73659ec58531b95df6a78 ,8f4dbbf2ffdedea1a489c87127aa5a1590b5cc4d) is missing the User's ID, preventing the EasyCLA check. Consult GitHub Help to resolve.For further assistance with EasyCLA, please submit a support request ticket.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 16, 2021

CLA Signed

The committers are authorized under a signed CLA.

  • ✅ John Dorman (4de3f68448e81135c88a6044b25e5a4c9671269d, 18330a9480dbd3242894754422315491415fbb2e, 4df275064ad5df97366262e7e2cd65f5210e06fc, 08a3e07d0b6f0405715528c65899301c0cca9669, 50390afd6adfec373748ef7ae80241395c670801, afbd8e6206c497a470f5e078f9dd816c057c5bb0, 6810c1133059513d2e9ea060fd3bf5db48fc2f90, 86ca053979d4a463134bd2bbf9c8fbe490db966d, 84dc9a96c6db52a42f90d23762b7e0ed27cfd8d6, ef875183c632d1f8c555bb53318c4a74ef09faac, b78c2a0205f10830ae22622a9e8dc803fac09d2f, ae077274ab3aea54a1a73659ec58531b95df6a78, 8f4dbbf2ffdedea1a489c87127aa5a1590b5cc4d, d38c15019f73fe9cbb4e39cfae6a22a3127ee388, 7ce34d15429c469c35b7553bf6780d4446aacba4)

@boostchicken
Copy link
Member Author

CLA pending internal Sony process, should be here shortly

Copy link

@mjallday mjallday left a comment

Choose a reason for hiding this comment

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

🙌

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Nov 26, 2021
@boostchicken
Copy link
Member Author

Resurrecting this while waitinf ro CLA

@boostchicken
Copy link
Member Author

@mjallday can you remove the stale still waiting on CLA

@boostchicken
Copy link
Member Author

boostchicken commented Nov 27, 2021

Outdated

@mjallday
Copy link

I can’t remove the stale message. I’m just an interested neutral party and not affiliated with otel project beyond creating #5838.

@boostchicken
Copy link
Member Author

@tigrannajaryan

Sorted and ready for your review / merge

@boostchicken
Copy link
Member Author

Hey all,

My apologies on just leaving this hanging. There were some issues out of my control precluding me from finishing it up. Let me see if I can get this thing updated and fixed with the latest version.

# Conflicts:
#	CHANGELOG.md
#	internal/coreinternal/processor/filterspan/filterspan.go
#	processor/filterprocessor/factory.go
#	processor/filterprocessor/factory_test.go
@boostchicken
Copy link
Member Author

@dmitryax please re-open I have addressed all your feedback and updated this

@boostchicken boostchicken changed the title [processor/filter] Ability to filter spans [processor/filterprocessor] Ability to filter spans Jun 11, 2022
@dmitryax dmitryax reopened this Jun 11, 2022
Signed-off-by: John Dorman <john@boostchicken.dev>
@boostchicken boostchicken requested a review from pmm-sumo as a code owner June 11, 2022 17:00
@boostchicken
Copy link
Member Author

boostchicken commented Jun 11, 2022

@dmitryax is check-links going to block this merge? I didn't touch the links that are broken someone must have removed something from the repo?

Nevermind, I was able to track down the right part to link to, it has been updated

@github-actions github-actions bot removed the Stale label Jun 13, 2022
@djaglowski
Copy link
Member

@dmitryax, will you give this another review when you can?

@yk-47
Copy link

yk-47 commented Jun 22, 2022

Any update on this? hoping to use this feature

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.

Minor formatting comments but the code looks good otherwise

@codeboten codeboten merged commit 4be2219 into open-telemetry:main Jun 23, 2022
codeboten referenced this pull request in codeboten/opentelemetry-collector-contrib Jun 23, 2022
A few suggestions were missed in the merge of #6341, this PR addresses those.
@boostchicken boostchicken deleted the filter_spans branch June 23, 2022 19:40
mx-psi pushed a commit that referenced this pull request Jun 24, 2022
A few suggestions were missed in the merge of #6341, this PR addresses those.
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.