πŸ“ Subsystem Deep Dive

utils/telemetry/

πŸ“ utils/telemetry/ πŸ“„ 7 files

Tutorial: telemetry

This project implements a comprehensive telemetry and observability system for an AI coding assistant. It orchestrates the collection of distributed traces (using OpenTelemetry), discrete events, and performance profiles (using Perfetto) to monitor user interactions, LLM requests, and tool executions. The system emphasizes privacy-aware data handling by hashing sensitive information and redacting PII before exporting data to various backends like BigQuery or OTLP endpoints.

flowchart TD A0["Session Tracing & Context Propagation"] A1["Telemetry Bootstrap & Instrumentation"] A2["Perfetto Performance Profiling"] A3["Custom Metrics Export Strategy"] A4["Discrete Event Logging"] A5["Privacy-Aware Metadata & Hashing"] A1 -->|"Initializes and manages lif..."| A0 A1 -->|"Registers exporter"| A3 A1 -->|"Initializes profiling"| A2 A0 -->|"Mirrors traces locally"| A2 A0 -->|"Logs side-channel events"| A4 A5 -->|"Emits sanitized events"| A4

Chapters

  1. Telemetry Bootstrap & Instrumentation
  2. Session Tracing & Context Propagation
  3. Discrete Event Logging
  4. Privacy-Aware Metadata & Hashing
  5. Perfetto Performance Profiling
  6. Custom Metrics Export Strategy

Generated by Code IQ

Files in this section