analytics-instrumentation

Create and validate Sentry spans, MetaMetrics events, and Segment tracking.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MajorLift/metamask-extension-skills --skill analytics-instrumentation-majorlift
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analytics-instrumentation
Source: https://github.com/MajorLift/metamask-extension-skills/tree/main/domains/analytics/skills/analytics-instrumentation
Command: npx skills add https://github.com/MajorLift/metamask-extension-skills --skill analytics-instrumentation-majorlift

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to telemetry instrumentation, enabling consistent creation and maintenance of Sentry spans, MetaMetrics events, and Segment tracking across the codebase.

Core Features & Use Cases

  • Create or update Sentry spans using the repo's trace wrapper to ensure cross-process propagation and consistent tagging.
  • Add or update MetaMetrics/Segment events with governance reviews, enum checks, and proper registration before shipping.
  • Estimate telemetry volume from production data using Sentry traces and dashboards to inform capacity planning.

Quick Start

Add or modify instrumentation by locating the relevant span and event definitions, applying the trace wrapper, and completing governance checks before merging.

Frequently Asked Questions about analytics-instrumentation

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

FAQPage Schema
How do I add Sentry spans and ensure cross-process propagation in my codebase?

To instrument Sentry spans accurately, apply the repository's trace wrapper to your code to ensure consistent tagging and cross-process propagation for performance tracing.

What is the process for registering MetaMetrics events before shipping a feature?

Registering MetaMetrics events requires completing governance reviews, performing enum checks, and validating event names before shipping to ensure telemetry instrumentation accuracy and compliance.

How do I estimate telemetry volume from production data for capacity planning?

Estimate telemetry volume by analyzing production data through Sentry traces and dashboards, which informs capacity planning by providing actual usage metrics for your instrumentation.

Do I need to follow governance steps when updating Segment tracking?

Yes, updating Segment tracking requires following governance steps including enum checks and proper event registration before merging, ensuring consistent telemetry instrumentation across the codebase.

What's the best way to maintain consistent telemetry instrumentation across a codebase?

The best way to maintain consistent telemetry is to use trace wrappers for Sentry spans and complete governance reviews with enum checks for MetaMetrics and Segment events before shipping feature work.

When do I need to use a trace wrapper for Sentry instrumentation?

You need a trace wrapper for Sentry instrumentation during feature work or performance tracing when cross-process propagation and consistent tagging across the codebase are required.