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

[receiver/splunkenterprise] Refactor component to better utilize SDK #27026

Closed
shalper2 opened this issue Sep 20, 2023 · 4 comments
Closed

[receiver/splunkenterprise] Refactor component to better utilize SDK #27026

shalper2 opened this issue Sep 20, 2023 · 4 comments
Assignees
Labels

Comments

@shalper2
Copy link
Contributor

Component(s)

receiver/splunkenterprise

Is your feature request related to a problem? Please describe.

The current logic of the Splunkenterprise receiver does not utilize the provided SDK as comprehensively as it could. Specifically, httpauth, configauth, and basicauthextension could all be leveraged to reduce custom code and improve the readability of the component. Additionally there is a custom timeout setting that can be replaced by using the ScraperControllerSettings.Timeout field.

Describe the solution you'd like

A refactor of the component to leverage the above mentioned pieces of the opentelemetry SDK to replace custom code implementing the same functionality.

Describe alternatives you've considered

Currently the component works well but relies on custom implementations of functionality which exists in the codebase.

Additional context

No response

@shalper2 shalper2 added enhancement New feature or request needs triage New item requiring triage labels Sep 20, 2023
@shalper2
Copy link
Contributor Author

please assign to me

@crobert-1 crobert-1 added receiver/splunkenterprise and removed needs triage New item requiring triage labels Sep 20, 2023
@github-actions
Copy link
Contributor

Pinging code owners for receiver/splunkenterprise: @shalper2 @MovieStoreGuy. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@crobert-1
Copy link
Member

Removed needs triage flag, totally agree to reusing the existing logic for these functionalities.

This was referenced Sep 26, 2023
codeboten pushed a commit that referenced this issue Oct 16, 2023
Refactored parts of the Splunk Enterprise receiver to better leverage
the pre-existing otel SDK. This PR also updates the README to be a more
informative document.

[27026](#27026)

Unit testing is included and updated to accommodate the new refactor.
@codeboten
Copy link
Contributor

This is closed by #27205

JaredTan95 pushed a commit to openinsight-proj/opentelemetry-collector-contrib that referenced this issue Oct 18, 2023
Refactored parts of the Splunk Enterprise receiver to better leverage
the pre-existing otel SDK. This PR also updates the README to be a more
informative document.

[27026](open-telemetry#27026)

Unit testing is included and updated to accommodate the new refactor.
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this issue Nov 12, 2023
Refactored parts of the Splunk Enterprise receiver to better leverage
the pre-existing otel SDK. This PR also updates the README to be a more
informative document.

[27026](open-telemetry#27026)

Unit testing is included and updated to accommodate the new refactor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants