Skip to content

Commit 727777e

Browse files
authored
[Heartbeat] Move import to cmd for agentbeat (#39818)
* [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.
1 parent 90f9e8f commit 727777e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
161161
- Adjust State loader to only retry when response code status is 5xx {pull}37981[37981]
162162
- Reset prctl dumpable flag after cap drop. {pull}38269[38269]
163163
- Redact synthexec cmd output. {pull}39535[39535]
164+
- Fix import of browser plugin for agentbeat. {pull}39818[39818]
164165

165166
*Heartbeat*
166167

x-pack/heartbeat/import.go renamed to x-pack/heartbeat/cmd/import.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
//go:build linux || darwin
66

7-
package main
7+
package cmd
88

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

0 commit comments

Comments
 (0)