-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[chore] [receiver/elasticsearch] Use NewDefaultClientConfig instead of manual initialization #35509
Conversation
Skip changelog? |
@@ -138,6 +140,7 @@ func TestValidateEndpoint(t *testing.T) { | |||
} | |||
|
|||
func TestLoadConfig(t *testing.T) { | |||
defaultTransport := http.DefaultTransport.(*http.Transport) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
…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.>
…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.>
Description:
Similar to #35452 but for the
elasticsearch
receiver.Link to tracking Issue: #35457
Testing:
Documentation: