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:52
@mergify mergify bot requested review from pchila and ycombinator and removed request for a team November 25, 2025 21:52
@mergify mergify bot added the backport label Nov 25, 2025
@github-actions github-actions bot added the enhancement New feature or request label Nov 25, 2025
@cmacknz cmacknz enabled auto-merge (squash) November 25, 2025 21:54
@cmacknz cmacknz merged commit be4f5d7 into 9.2 Nov 25, 2025
23 of 24 checks passed
@cmacknz cmacknz deleted the mergify/bp/9.2/pr-11394 branch November 25, 2025 23:13
@elasticmachine
Copy link
Contributor

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants