Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Nov 25, 2025

What does this PR do?

Allows the hosts part of the beat output to be a string instead of a slice.

This is to match the behavior of beats which allows this.

Why is it important?

This means that more hand written configuration will work "out of the box" with beat receivers.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

None.

How to test this PR locally

cd internal/pkg/otel/translate
go test -run TestToOtelConfig

Related issues

Questions to ask yourself

  • How are we going to support this in production?
  • How are we going to measure its adoption?
  • How are we going to debug this?
  • What are the metrics I should take care of?
  • ...

This is an automatic backport of pull request #11394 done by [Mergify](https://mergify.com).

* [otel config translate] allow hosts to be string not just slice

* update changelog to bugfix

(cherry picked from commit 70ef801)
@mergify mergify bot added the backport label Nov 25, 2025
@mergify mergify bot requested a review from a team as a code owner November 25, 2025 21:51
@mergify mergify bot requested review from ycombinator and removed request for a team November 25, 2025 21:51
@mergify mergify bot added the backport label Nov 25, 2025
@mergify mergify bot requested a review from swiatekm November 25, 2025 21:51
@github-actions github-actions bot added the enhancement New feature or request label Nov 25, 2025
@leehinman leehinman enabled auto-merge (squash) November 25, 2025 22:45
@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Dec 1, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@elasticmachine
Copy link
Contributor

elasticmachine commented Dec 1, 2025

💔 Build Failed

Failed CI Steps

History

cc @leehinman

@leehinman leehinman merged commit 8023a89 into 8.19 Dec 2, 2025
17 checks passed
@leehinman leehinman deleted the mergify/bp/8.19/pr-11394 branch December 2, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport enhancement New feature or request Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants