Skip to content

Commit

Permalink
add on-demand osquery download startup span events (#1811)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackattack01 authored Jul 30, 2024
1 parent d4f081e commit be04b3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -566,6 +567,8 @@ func runLauncher(ctx context.Context, cancel func(), multiSlogger, systemMultiSl
"err", err,
)
}

startupSpan.AddEvent("osqueryd_startup_download_completed")
}
}

Expand Down

0 comments on commit be04b3c

Please sign in to comment.