dev/sg: log linter events, add more docs to LogEvent
Created by: bobheadxi
Logs linter durations and whether they get cancelled or not. Inspired by https://github.com/sourcegraph/sourcegraph/pull/36250
Thought: maybe we can submit events in CI?
Test plan
go run ./dev/sg --disable-analytics=false lint