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

[jaegerreceiver] Remove unused remote sampling server #36971

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Dec 27, 2024

Description

The RemoteSampling config of the receiver has been disabled in the past (it just logs a warning now), but the code for the actual sampling server was still around. This PR removes that code.

While the endpoint is defined in the private config

it has been removed from the public config and the private part is never populated

if rCfg.RemoteSampling != nil {
set.Logger.Warn("You are using a deprecated no-op `remote_sampling` option which will be removed soon; use a `jaegerremotesampling` extension instead")
}

Testing

CI

@TylerHelmuth TylerHelmuth added the ready to merge Code review completed; ready to merge by maintainers label Jan 7, 2025
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Change looks good, needs merge conflicts addressed

@TylerHelmuth TylerHelmuth removed the ready to merge Code review completed; ready to merge by maintainers label Jan 9, 2025
@TylerHelmuth
Copy link
Member

Looks like it still needs a make gotidy

@yurishkuro yurishkuro force-pushed the jaegerreceiver-remove-sampling-endpoint branch from 5eb69d9 to 293cb73 Compare January 9, 2025 20:22
@codeboten
Copy link
Contributor

CI failure should have been addressed with #37120, updated the branch to pull that change in

@codeboten codeboten merged commit 7865587 into open-telemetry:main Jan 9, 2025
163 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 9, 2025
AkhigbeEromo pushed a commit to sematext/opentelemetry-collector-contrib that referenced this pull request Jan 13, 2025
…#36971)

#### Description

The RemoteSampling config of the receiver has been disabled in the past
(it just logs a warning now), but the code for the actual sampling
server was still around. This PR removes that code.

While the endpoint is defined in the private config
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/b53b5ad2e857367170c0ba04dfca8ad9886f0a87/receiver/jaegerreceiver/trace_receiver.go#L51

it has been removed from the public config and the private part is never
populated
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/b53b5ad2e857367170c0ba04dfca8ad9886f0a87/receiver/jaegerreceiver/factory.go#L107-L109

#### Testing

CI

Signed-off-by: Yuri Shkuro <[email protected]>
Co-authored-by: Alex Boten <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
receiver/jaeger Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants