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

[chore] [receiver/elasticsearch] Use NewDefaultClientConfig instead of manual initialization #35509

Merged

Conversation

rogercoll
Copy link
Contributor

Description:

Similar to #35452 but for the elasticsearch receiver.

Link to tracking Issue: #35457

Testing:

Documentation:

@rogercoll rogercoll requested review from djaglowski and a team as code owners October 1, 2024 08:23
@rogercoll
Copy link
Contributor Author

Skip changelog?

@@ -138,6 +140,7 @@ func TestValidateEndpoint(t *testing.T) {
}

func TestLoadConfig(t *testing.T) {
defaultTransport := http.DefaultTransport.(*http.Transport)
Copy link
Member

Choose a reason for hiding this comment

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

One last thing, can you change this to match: open-telemetry/opentelemetry-collector@aa03d76. Like that, we aren't affected if the global DefaultTransport is changed and define our own variables

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice suggestion, changed in 506af78

@rogercoll rogercoll changed the title [receiver/elasticsearch] Use NewDefaultClientConfig instead of manual initialization [chore] [receiver/elasticsearch] Use NewDefaultClientConfig instead of manual initialization Oct 2, 2024
@djaglowski djaglowski merged commit 0a7c6d1 into open-telemetry:main Oct 9, 2024
156 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 9, 2024
@rogercoll rogercoll deleted the elastic_use_default_client branch October 9, 2024 06:37
jmichalek132 pushed a commit to jmichalek132/opentelemetry-collector-contrib that referenced this pull request Oct 10, 2024
…f manual initialization (open-telemetry#35509)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->

Similar to
open-telemetry#35452
but for the `elasticsearch` receiver.

**Link to tracking Issue:** <Issue number if applicable>
open-telemetry#35457

**Testing:** <Describe what testing was performed and which tests were
added.>

**Documentation:** <Describe the documentation added.>
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
…f manual initialization (open-telemetry#35509)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->

Similar to
open-telemetry#35452
but for the `elasticsearch` receiver.

**Link to tracking Issue:** <Issue number if applicable>
open-telemetry#35457

**Testing:** <Describe what testing was performed and which tests were
added.>

**Documentation:** <Describe the documentation added.>
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.

4 participants