Create a telemetry schema catalog: events, PII tags, ownership, and QA.
- User
Create a telemetry schema catalog: events, PII tags, ownership, and QA.
- Assistant
Create a telemetry schema catalog: events, PII tags, ownership, and QA.
Okay, the user wants a telemetry schema catalog covering events, PII tags, ownership, and QA. This is a structured request, so I need to provide a clear, actionable framework rather than just definitions.
First, I should break down each component they mentioned: events (core data points), PII tags (privacy handling), ownership (accountability), and QA (validation). Since they said "catalog," a table-based format with examples would work best—it’s scannable and practical.
I’ll start with a high-level overview explaining the purpose and interdependence of these components. Then, for each section:
Avoid jargon unless defined. Tie it all together with implementation steps—this isn’t just theory; they’ll need to execute. Emphasize PII as a cross-cutting concern and QA as continuous. Maybe add a "gotchas" section for pitfalls like over-tagging or ownership gaps.
Keep it concise but thorough. They’re likely building or auditing a system, so practicality > completeness. No fluff. Excellent. A Telemetry Schema Catalog is a foundational governance document for any data-driven organization. It turns raw event streams into a reliable, privacy-compliant, and actionable asset.
Here is a comprehensive, actionable Telemetry Schema Catalog framework, designed for implementation.
Purpose: To define, standardize, and govern all telemetry events (client, server, business) for consistency, privacy (PII), accountability (ownership), and quality (QA).
Core Principles:
All events must adhere to this base schema. Additional, event-specific properties are defined per event.
| Field Name | Data Type | Required | Description | Example |
|---|---|---|---|---|
event_id | string (UUID) | Yes | Unique identifier for this specific event instance. | "a1b2c3d4-e5f6-7890-abcd-ef1234567890" |
event_name | string | Yes | Canonical, kebab-case name of the event. See naming conventions. | "user_signed_up" |
event_version | integer | Yes | Schema version of this event type. Increment when the properties schema changes. | 2 |
timestamp | string (ISO 8601) | Yes | UTC timestamp when the event occurred on the client/device. | "2023-10-27T14:30:15.123Z" |
session_id | string | No | ID for the user's current session/visit. | "sess_987zyx" |
user_id | string | Conditional | PII-Tagged. Primary, persistent user identifier. Obfuscated if possible. | "usr_anon_abc123" |
device_id | string | Conditional | PII-Tagged. Anonymous device identifier (e.g., hashed IDFA/GAID). | "dev_hash_xyz789" |
platform | string | Yes | Source platform: web, ios, android, server, backend. | "ios" |
Naming Conventions:
[domain]_[entity]_[action] (e.g., cart_item_added, subscription_renewed, api_call_failed).snake_case.true/false.This is a cross-cutting concern. PII status is a property of a field, not the event. All fields listed in the base schema or properties must be assessed.
| PII Category | Field Examples | Handling Rule & Tag | Masking / Tokenization Requirement |
|---|---|---|---|
| Direct PII | email, phone_number, full_name, address, ssn, credit_card_num | PII: DIRECT | Must be tokenized/hashed before entering analytics pipeline. Never stored in raw form in data warehouse. |
| Indirect PII | user_id (if raw), ip_address, user_agent, precise_location | PII: INDIRECT | Must be generalized or truncated. E.g., IP to country/city, lat/long to region. user_id must be pseudonymized. |
| Derived PII | age (from DOB), zip_code (from address), income_bracket | PII: DERIVED | Subject to same rules as source. If derived from direct PII, treat as direct. If from aggregated data, lower risk. |
| Non-PII | app_version, event_name, session_id, product_id, country (from IP) | PII: NONE | Safe for all uses. |
| Quasi-PII | device_fingerprint, hashed_email (SHA-256) | PII: QUASI | Can be used for joining across systems only within secure, access-controlled environments. Never exported to raw datasets for broad analysis. |
Implementation: Every field in the catalog's properties section must have a "pii_tag" column (values: DIRECT, INDIRECT, DERIVED, NONE, QUASI).
| Attribute | Description | Responsible Role |
|---|---|---|
| Event Owner | Primary individual/team accountable for the event's definition, quality, and business relevance. | Product Manager of the relevant feature/domain. |
| Schema Maintainer | Engineer who implements the tracking, manages the schema registry, and handles versioning. | Analytics Engineer or Tracking Engineer. |
| Data Steward | Ensures PII tagging compliance, access controls, and data retention policies. | Data Governance Lead or Privacy Engineer. |
| Review Cadence | Formal review of event utility, PII status, and usage. | Quarterly. Owner must attest to continued relevance. |
| Deprecation Policy | Events not used in 12 months are flagged. After 18 months of no usage, they are archived and removed from production after 24 months. | Owner & Governance Lead. |
Event Lifecycle Flow: Draft (in catalog) -> Proposed (PR approved by Owner & Steward) -> Active -> Deprecated -> Archived.
QA is a multi-layered process.
event_id, event_name, timestamp, event_version are present.user_id is string, price is number).platform ∈ [web, ios, android, server].DIRECT are not present in raw payloads (must be tokenized upstream).| Metric | Description | Alert Threshold |
|---|---|---|
| Schema Drift | New, unexpected keys in properties. | > 0 for 3 consecutive days. |
| Null Rate | % of nulls in required fields (event_name, timestamp). | > 0.1% |
| PII Leakage | Count of events containing strings matching PII regex patterns (e.g., emails, SSNs). | > 0 (Critical). |
| Volume Anomaly | Daily event count deviation from 14-day median. | > ±50% |
| Event Version Stagnation | % of events using an old event_version. | > 10% (indicates untracked clients). |
| User ID Format | % of user_id values matching the expected tokenization pattern (e.g., usr_anon_*). | < 99% |
properties sufficient for current business questions?cart_item_added| Field | Type | Required | PII Tag | Description |
|---|---|---|---|---|
event_name | string | Yes | NONE | "cart_item_added" |
event_version | integer | Yes | NONE | 1 |
product_id | string | Yes | NONE | Internal SKU or product UUID. |
quantity | integer | Yes | NONE | Number of units added. |
price_cents | integer | Yes | NONE | Unit price at time of add, in cents. |
currency | string | Yes | NONE | ISO 4217 code ("USD", "EUR"). |
cart_value_cents | integer | No | NONE | Total cart value after this add. |
promo_code | string | No | NONE | Applied promo code (if any). |
| Owner | Jane Doe, E-commerce PM | |||
| Description |
Critical "Gotcha": The biggest failure mode is ownership without enforcement. The Product Owner must be accountable for the quality and usage of their events, not just their existence. Tie catalog compliance to product launch checklists.
app_version| string |
| Yes |
| Version of the application generating the event. |
"2.5.1" |
properties | object | Yes | Event-specific payload. Must be a flat JSON object (no nesting). Keys are snake_case. See individual event definitions. | { "plan": "pro", "source": " referral" } |
| "User added a specific item to their shopping cart." |
| Core Dashboards | "Cart Conversion Rate", "Product Discovery Funnel" |
| Last Reviewed | 2023-10-01 |