feat(relay): add opt-in usage analytics webhook

Signed-off-by: Prem Pillai <238277+cloud-on-prem@users.noreply.github.com>
This commit is contained in:
Prem Pillai
2026-08-10 20:23:44 +10:00
parent f8f2ef0440
commit 03f7d6d0ee
7 changed files with 644 additions and 0 deletions

View File

@@ -129,6 +129,19 @@ RUST_LOG=buzz_relay=debug,buzz_datastore=info,buzz_db=debug,buzz_auth=debug,buzz
# OTLP tracing endpoint (optional — leave unset to disable)
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
# -----------------------------------------------------------------------------
# Usage analytics webhook
# -----------------------------------------------------------------------------
# Disabled by default. When configured, the relay posts one small JSON event
# after each newly persisted kind:9 message. The payload contains the author's
# public key, the opaque community UUID, and relay acceptance time; it never
# includes message content or tags.
# The public key is a stable pseudonym and may be personal data.
#
# Remote endpoints must use HTTPS. HTTP is accepted only for localhost or a
# loopback IP so the webhook can be exercised during local development.
# BUZZ_USAGE_ANALYTICS_ENDPOINT=https://analytics.example.com/events
# -----------------------------------------------------------------------------
# ACP (Agent Communication Protocol — buzz-acp harness)
# -----------------------------------------------------------------------------