Repository navigation
feat(telemetry): report daemon activity and web app opens - #769
Conversation
roborev: Combined Review (
|
c8a19fe to
cc48d9d
Compare
roborev: Combined Review (
|
roborev: Combined Review (
|
The merged handler requires application/json and answers 413 for an oversized body, so the tests send that content type and expect 413.
Pin kit to kenn-io/kit#148 and kit-ui to kenn-io/kit-ui#85. The reporter now comes from kit's OpenTelemetry-free posthog package, which also owns the install file, the daily heartbeat and the shutdown timeout. Drop the go-test check and the 4 KB body cap; tests opt out through kit's process switch. Docs say counts are per vault and that the heartbeat goes out at each daemon start.
d561b16 to
6967c8d
Compare
roborev: Combined Review (
|
Give web users a visible explanation of the default-on activity reports and how to opt out from the daemon environment. Keep the change informational because the web app has no general daemon settings editor. Document telemetry authentication, body-size, media-type and capture errors so API consumers can discover the complete response contract. Generated with Codex Co-authored-by: Codex <noreply@openai.com>
The separate PostHog reporter is now released. Use the tag so Docbank no longer depends on an unmerged kit commit for anonymous usage reporting. Generated with Codex Co-authored-by: Codex <noreply@openai.com>
roborev: Combined Review (
|
Use the merged kit fixes so daily activity follows UTC calendar days when computers sleep. Forward the daemon logger to PostHog so SDK diagnostics reach the configured log destination. The merge commit is pinned until kit publishes the corresponding patch release. Update the heartbeat documentation to match its new schedule. Generated with Codex Co-authored-by: Codex <noreply@openai.com>
roborev: Combined Review (
|
The UTC-day heartbeat and daemon logger support now have a tagged release. Replace the temporary merge-commit pin with that release for a stable review and release dependency. Generated with Codex Co-authored-by: Codex <noreply@openai.com>
roborev: Combined Review (
|
Docbank reports when its daemon runs and when the web app opens so the team can count vaults in use. Reporting is on by default. Vault → Anonymous usage explains what is sent and how to opt out with
DOCBANK_TELEMETRY_ENABLED=0and a daemon restart.The daemon sends
daemon_startedanddaemon_activeat startup, thendaemon_activeon the first hourly check of each later UTC day. Missed days during sleep are not backfilled. The web app reportsapp_openedabout once per UTC day for the daemon's address through the authenticated daemon API. Events contain a random per-vault install ID, app version and commit, platform information, and install age; they contain no document content, filenames, paths, tags, or searches.The PostHog reporter comes from kit’s separate package, avoiding the OpenTelemetry exporters. With identical frontend assets and stripped linux/amd64 build flags, the binary falls from 80.7 MB to 63.6 MB compared with the combined telemetry import.
The reporter uses the daemon’s
sloglogger, so PostHog SDK diagnostics reach the same log destination as other daemon messages. Kit is pinned to v0.31.1.