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/servicegraph] remove deprecated component #30149

Merged

Conversation

codeboten
Copy link
Contributor

This component was replaced by the servicegraphconnector, which was a wrapper around the servicegraphprocessor. This PR moves the processor code into the connector component and removes the processor altogether. Note that as part of this PR I added the traces_to_traces support as it was supported by the processor before (with the development status).

Fixes #30041
Fixes #26091

@mx-psi
Copy link
Member

mx-psi commented Dec 21, 2023

panic: README.md does not exist at /home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/servicegraphprocessor/README.md, add one

Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

@codeboten
Copy link
Contributor Author

@songy23 i moved the flags from the processor to the connector.... not sure if i should have renamed them or not. maybe the code owners can weigh in on this @mapno @jpkrohling

Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

Needs make generate-gh-issue-templates

@atoulme
Copy link
Contributor

atoulme commented Dec 22, 2023

%v(0xe2e8a00,0xc00332d020)%v(0xe2e8a00,0xc003390720)--- FAIL: TestDefaultProcessors (0.02s)
    processors_test.go:150: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/cmd/otelcontribcol/processors_test.go:150
        	Error:      	Not equal: 
        	            	expected: 23
        	            	actual  : 24
        	Test:       	TestDefaultProcessors
        	Messages:   	All processors must be added to lifecycle tests
    --- FAIL: TestDefaultProcessors/servicegraph (0.00s)

Copy link
Contributor

@mapno mapno left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on this 🙏 Left a couple of comments.

connector/servicegraphconnector/factory.go Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

Making a file comment because I can't reference the lines I want.

IMO, naming should be migrated as well. So it'd be serviceGraphConnector, newConnector, etc.

Copy link
Contributor

Choose a reason for hiding this comment

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

The tracesConsumer can also be removed. It was used in the processor only.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated the code to reflect this feedback. One more question what about the metrics generated by the component itself? Currently it looks like:

processor_dropped_spans
processor_total_edges
processor_expired_edges

Copy link
Contributor

Choose a reason for hiding this comment

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

I personally would change them as well. The processor is deprecated, and my assumption is that those metrics as well.

Copy link
Member

Choose a reason for hiding this comment

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

Having a connector emit metrics that have processor in name is confusing in the long run, I agree those metrics should be renamed. I'd be fine with renaming them in a separate pull request though.

Copy link
Member

Choose a reason for hiding this comment

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

A note on the renaming of the internal components - if I understand correctly, this is a refactoring (no change in behavior) and not needed to remove the Service Graph processor. I believe in future it's better to do it in a separate pull request. Makes the PRs smaller and easier to review.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@astencel-sumo fair enough. i was moving the code from the processor over and needed to rename a few things to make it all work.

@codeboten codeboten force-pushed the codeboten/mv-deprecated-component branch from 15b251a to 339fc5b Compare January 15, 2024 23:41
Copy link
Contributor

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

@github-actions github-actions bot added the Stale label Jan 30, 2024
@codeboten codeboten force-pushed the codeboten/mv-deprecated-component branch from c9964e5 to d953a6b Compare February 1, 2024 19:24
Alex Boten added 8 commits February 1, 2024 15:31
This component was replaced by the servicegraphconnector, which was a wrapper around the servicegraphprocessor. This PR moves the processor code into the connector component and removes the processor altogether. Note that as part of this PR I added the traces_to_traces support as it was supported by the processor before (with the development status).

Fixes open-telemetry#30041
Fixes open-telemetry#26091

Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
@codeboten codeboten force-pushed the codeboten/mv-deprecated-component branch from d953a6b to 83ee263 Compare February 1, 2024 23:53
Signed-off-by: Alex Boten <aboten@lightstep.com>
@codeboten codeboten merged commit d02d376 into open-telemetry:main Feb 2, 2024
142 checks passed
@codeboten codeboten deleted the codeboten/mv-deprecated-component branch February 2, 2024 16:00
@github-actions github-actions bot added this to the next release milestone Feb 2, 2024
codeboten pushed a commit to codeboten/opentelemetry-collector-contrib that referenced this pull request Feb 2, 2024
This follows the comment from open-telemetry#30149 (comment)

Signed-off-by: Alex Boten <aboten@lightstep.com>
codeboten pushed a commit that referenced this pull request Feb 5, 2024
This follows the comment from
#30149 (comment)

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
jpkrohling pushed a commit that referenced this pull request Aug 21, 2024
This PR adds tests which were previously added in #17350, but got
removed in #30149.
f7o pushed a commit to f7o/opentelemetry-collector-contrib that referenced this pull request Sep 12, 2024
This PR adds tests which were previously added in open-telemetry#17350, but got
removed in open-telemetry#30149.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants