telemetry.capture

Capture Betty Framework component telemetry with thread-safe JSON logging.

2|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/epieczko/betty --skill telemetry-capture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: telemetry.capture
Source: https://github.com/epieczko/betty/tree/main/skills/telemetry.capture
Command: npx skills add https://github.com/epieczko/betty --skill telemetry-capture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Captures and stores execution telemetry for Betty components, enabling observability, auditing, and performance analysis.

Core Features & Use Cases

  • Thread-safe logging to registry/telemetry.json
  • Decorator and context-manager-based telemetry capture
  • Supports CLI and programmatic telemetry capture

Quick Start

Use the TelemetryCapture class or the capture_telemetry decorator to log events:

  • From CLI: python skills/telemetry.capture/telemetry_capture.py plugin.build success 320 CLI

Frequently Asked Questions about telemetry.capture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I capture telemetry data from Betty Framework components?

Telemetry capture records execution data from Betty components using decorator or context-manager patterns. Use the TelemetryCapture class or capture_telemetry decorator to log events with timestamps, duration, status, and caller information to a thread-safe registry file for observability and auditing.

Can I use telemetry capture with CLI entrypoints and workflows?

Yes, telemetry capture supports CLI entrypoints, workflows, agents, and programmatic usage. Apply decorators or context managers to CLI commands and workflow steps to automatically log execution telemetry without modifying core logic.

What information does telemetry capture record?

Telemetry capture records structured entries including skill name, execution status, duration in milliseconds, caller identity, sanitized inputs, error messages, ISO timestamps, and custom metadata to /registry/telemetry.json for performance analysis and auditing.

How do I implement thread-safe telemetry logging?

Telemetry capture handles thread-safe writes automatically when writing to /registry/telemetry.json. Use the TelemetryCapture class or decorator; it manages concurrent access and ensures data consistency across multiple execution contexts.

Does telemetry capture sanitize sensitive input data?

Yes, telemetry capture includes input sanitization to prevent logging sensitive information. Inputs are processed before storage in telemetry records to protect credentials and personal data while maintaining audit visibility.

What's the difference between decorator and context-manager patterns for telemetry?

Decorators automatically wrap function execution for hands-off telemetry capture; context managers provide manual control over what code sections log telemetry. Choose decorators for consistent coverage or context managers for selective instrumentation.