Documentation Index
Fetch the complete documentation index at: https://docs.crewship.ai/llms.txt
Use this file to discover all available pages before exploring further.
crewship telemetry
Manages the crash-reporting consent state stored in the localapp_settings table. The running server picks up changes on the
next start.
Default for v0.1 beta: ENABLED. First
crewship start on a fresh
DB writes opt-in=true and starts the Sentry client. Documented in full
in Telemetry — Default for v0.1 beta.
The default-on stance reverts to opt-in for v1.0 GA.crewship telemetry on
Writes telemetry_opt_in = "1" to app_settings and generates an
anonymous install ID (random 32-hex) if one doesn’t exist yet.
crewship telemetry off
Writes telemetry_opt_in = "0". The off-state is sticky: even if
the v0.1 beta default-on logic would normally enable on fresh boot,
an explicit “0” wins. This is what makes opt-out reliable.
crewship telemetry status
Shows the resolved state without changing anything.
endpoint line shows where events would route plus why:
vendor default (compiled in)— DSN baked into the binary at release time via-X .../crashreport.DSN=...ldflag. Routes to the maintainer’s Sentry project (crewship-backend).CREWSHIP_SENTRY_DSN env override— operator set the env var to redirect events to their own Sentry instance. See Telemetry — Routing override.
Routing override (don’t ship to maintainer)
For enterprise self-hosters, regulated environments, or anyone who’d rather pay their own Sentry quota:crashreport.ResolveDSN() prefers the env value over the ldflag-baked
default. crewship telemetry status will reflect the override in the
endpoint line.
What gets sent (recap)
| Sent | Never sent |
|---|---|
| Go stack traces + exception messages (subject to server-side regex scrub) | Workspace, user, or credential data |
| Crewship version + commit + OS/arch | HTTP request bodies |
| Anonymous install ID (32-hex, generated locally) | Authorization / Cookie / X-API-Key headers |
Sentry environment (beta / production / development) | Query-string secrets (?token=..., ?api_key=...) |
os context (GOOS name) | Hostname (replaced with install ID) |
| Environment variables | |
| Go module list |
internal/crashreport/sentry_adapter.go::scrubEvent.
Programmatic opt-out (CI / scripts)
To pre-set the consent before the firstcrewship start — useful when
provisioning Crewship from a config-management tool that doesn’t want
the beta default-on:
crewship telemetry opens the DB at the same path crewship start
would and applies the v88 migration (app_settings) on first run, so
the consent setting works even on a never-started fresh install.
Related
- Telemetry guide — privacy posture, what’s sent, server-side scrubbing rules, full routing-override flow.
crewship doctor— shows the same telemetry state alongside other system checks.crewship start— boot flow that initializes the Sentry client based on consent.