Skip to content

[8.x](backport #40816) Add NewBeatReceiver function for beats as otel receivers#40891

Merged
pierrehilbert merged 1 commit into8.xfrom
mergify/bp/8.x/pr-40816
Sep 19, 2024
Merged

[8.x](backport #40816) Add NewBeatReceiver function for beats as otel receivers#40891
pierrehilbert merged 1 commit into8.xfrom
mergify/bp/8.x/pr-40816

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Sep 18, 2024

Proposed commit message

This PR adds a new function NewBeatReceiver to instantiate a beat as an otel receiver. The code is similar to the createBeater and configure functions. It is separate to so that understanding of tel receivers doesn't leak into to existing Beat setup. This also makes it much safer to change the receiver setup without breaking the traditional beat setup.

Checklist

  • 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.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Disruptive User Impact

None

Author's Checklist

  • [ ]

How to test this PR locally

Integration tests will catch if this change breaks regular beats instantiation. When receivers are added that will test that the new function works correctly.

Related issues

Use cases

Screenshots

Logs


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

* Add NewBeatReceiver function for beats as otel receivers

(cherry picked from commit 8feb181)
@mergify mergify bot requested review from a team as code owners September 18, 2024 17:36
@mergify mergify bot added the backport label Sep 18, 2024
@mergify mergify bot requested review from AndersonQ and khushijain21 and removed request for a team September 18, 2024 17:36
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 18, 2024
@botelastic
Copy link
Copy Markdown

botelastic bot commented Sep 18, 2024

This pull request doesn't have a Team:<team> label.

@pierrehilbert pierrehilbert merged commit 5bd39bb into 8.x Sep 19, 2024
@pierrehilbert pierrehilbert deleted the mergify/bp/8.x/pr-40816 branch September 19, 2024 07:22
@khushijain21 khushijain21 mentioned this pull request Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport needs_team Indicates that the issue/PR needs a Team:* label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants