add-telemetry

Instrument Warp code with structured TelemetryEvent enums and trait implementations.

37|1|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/terzigolu/warp-lite --skill add-telemetry-terzigolu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-telemetry
Source: https://github.com/terzigolu/warp-lite/tree/main/.agents/skills/add-telemetry
Command: npx skills add https://github.com/terzigolu/warp-lite --skill add-telemetry-terzigolu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Telemetry instrumentation is essential to observe how Warp features behave in production while maintaining user privacy. This Skill provides a structured pattern for adding feature-specific telemetry events, enabling teams to instrument new features, diagnose issues, and quantify product metrics without global, unstructured logging.

Core Features & Use Cases

  • Define a feature-specific TelemetryEvent enum implementing TelemetryEvent.
  • Implement the TelemetryEvent trait with name, payload, description, enablement_state, contains_ugc, and event_descs.
  • Register the event and emit telemetry from your code, using send_telemetry_from_ctx! or send_telemetry_from_app_ctx! depending on the context.

Quick Start

Identify a feature to instrument, create a feature-specific TelemetryEvent enum, implement the TelemetryEvent trait, register the event, and emit telemetry from your code.

Frequently Asked Questions about add-telemetry

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

FAQPage Schema
How do I add structured telemetry events to a Warp feature in Rust?

To add structured telemetry events to a Warp feature, define a feature-specific TelemetryEvent enum, implement the TelemetryEvent trait, register the event, and emit telemetry using send_telemetry_from_ctx! or send_telemetry_from_app_ctx! macros.

What is the best way to instrument Warp code for measuring product metrics without unstructured logging?

The best way to measure product metrics without unstructured logging is using feature-specific TelemetryEvent enums. This structured pattern ensures you can observe Warp feature behavior in production while maintaining user privacy.

How does the TelemetryEvent trait work when instrumenting Warp modules?

The TelemetryEvent trait works by requiring implementations for name, payload, description, enablement_state, contains_ugc, and event_descs fields. These define the structured telemetry event payload emitted from Warp modules.

Can I use send_telemetry_from_app_ctx! to emit telemetry from any application context?

You can use send_telemetry_from_app_ctx! to emit telemetry from application contexts, while send_telemetry_from_ctx! is used for standard contexts. Choosing between them depends on the specific context available in your Warp code.

Does adding telemetry to Warp features require external dependencies?

Adding telemetry to Warp features does not require external dependencies. The instrumentation process relies entirely on defining TelemetryEvent enums and implementing the TelemetryEvent trait within your existing Rust codebase.

When should I instrument Warp code with structured telemetry events?

You should instrument Warp code with structured telemetry events when adding new features, diagnosing production issues, or quantifying product metrics. This approach replaces global logging with targeted, feature-specific observability.