feat(telemetry): opt-in product telemetry relay and per-tenant switch #148
Open
sharang
wants to merge 1 commits from
feat/telemetry-relay into main
pull from: feat/telemetry-relay
merge into: platform:main
platform:main
platform:feat/einstieg-plan
platform:feat/update-policy
platform:feat/feedback-endpoint
platform:feat/onprem
platform:feat/onprem-mail
platform:feat/onprem-directory-users
platform:feat/onprem-mode
platform:feat/avv-autofill
platform:feat/release-avv-1.0.0
platform:fix/erpsetup-dunning-and-small
platform:feat/module-user-count
platform:feat/usage-summary
platform:feat/mahnung-ladder
platform:fix/toms-status-available
platform:feat/contractdocs-agb-tom
platform:feat/company-rules
platform:feat/staff-brand-slug
platform:fix/intake-outlives-purge
platform:fix/catalogue-labels
platform:feat/trial-offer-status
platform:feat/function-holders
platform:feat/assignable-bundles
platform:feat/contract-documents
platform:feat/erp-lb-versions
platform:feat/store-merges-unterlagen
platform:feat/product-hierarchy
platform:feat/preview-grants
platform:ci/platform-image-and-webhook
platform:ci/registry-meghsakha-orca-webhook
1
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
849e79ada0 |
feat(telemetry): opt-in product telemetry relay and per-tenant switch
Werkpilot's content-free usage metrics go through the registry, so no
collector token sits on customer machines, and only for workspaces that
turned telemetry on.
- GET/PUT /v1/tenants/{id}/products/{product}/telemetry: the switch,
default off, kept as the "telemetry" key of the product's settings
document (0025, no migration); IT_ADMIN/OWNER or services; audited as
product_settings.changed
- "telemetry" in licence grants (POST /v1/licences, /v1/licences/ci,
heartbeat renewals) and at the top of the heartbeat answer
- POST /v1/telemetry: checks a batch against a fixed allowlist and
forwards it to TELEMETRY_OTLP_URL as OTLP/HTTP JSON (delta sums and
histograms, tenant resource attributes, never the person); 120 batches
per person and hour; CLI user tokens pass with their licences grant
Refs platform/werkpilot#87
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRayW7ztyk1uAtwMJPR
|