From be04b3c371c792a01b9c806dc049587e37c2f32b Mon Sep 17 00:00:00 2001 From: Zack Olson Date: Tue, 30 Jul 2024 17:27:26 -0400 Subject: [PATCH] add on-demand osquery download startup span events (#1811) --- cmd/launcher/launcher.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/launcher/launcher.go b/cmd/launcher/launcher.go index 4a7fb6b66..5d5379c8f 100644 --- a/cmd/launcher/launcher.go +++ b/cmd/launcher/launcher.go @@ -552,6 +552,7 @@ func runLauncher(ctx context.Context, cancel func(), multiSlogger, systemMultiSl "detected missing osqueryd executable, will attempt to download", ) + startupSpan.AddEvent("osqueryd_startup_download_start") // simulate control server request for immediate update, noting to bypass the initial delay window actionReader := strings.NewReader(`{ "bypass_initial_delay": true, @@ -566,6 +567,8 @@ func runLauncher(ctx context.Context, cancel func(), multiSlogger, systemMultiSl "err", err, ) } + + startupSpan.AddEvent("osqueryd_startup_download_completed") } }