Skip to content

Commit

Permalink
[Heartbeat] Move import to cmd for agentbeat (#39818)
Browse files Browse the repository at this point in the history
* [Heartbeat] Move import to cmd for agentbeat

Fix browser plugin import to be bundled inside agentbeat, which is now being skipped and it prevents browser monitors from working.
  • Loading branch information
emilioalvap committed Jun 6, 2024
1 parent 90f9e8f commit 727777e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
- Adjust State loader to only retry when response code status is 5xx {pull}37981[37981]
- Reset prctl dumpable flag after cap drop. {pull}38269[38269]
- Redact synthexec cmd output. {pull}39535[39535]
- Fix import of browser plugin for agentbeat. {pull}39818[39818]

*Heartbeat*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

//go:build linux || darwin

package main
package cmd

// Agentbeat imports cmd directly and skips main, import all required plugins
// here to have them bundled together
import (
_ "github.com/elastic/beats/v7/x-pack/heartbeat/monitors/browser"
)

0 comments on commit 727777e

Please sign in to comment.