Skip to content
tezvyn:

Instrumentation

40 bites tagged Instrumentation — interview questions with model answers, and 60-second explainers.

Analytics & Metrics2 min read

How would you design a 'button_click' analytics event payload?

This tests your ability to design for future analysis. A great answer specifies core identifiers (user ID, timestamp), contextual properties (page, component), and a flat JSON structure. A red flag is forgetting the user ID or providing an unstructured list.

Analytics & Metrics2 min read

Sudden metric drop, no recent deployments. What's the cause?

This tests your ability to debug data discrepancies beyond code, focusing on the analytics pipeline. First, distinguish data loss from misattribution. Then, check processing delays and hidden data sources. A red flag is not segmenting data first.

Analytics & Metrics2 min read

Translate 'increase engagement' into a technical measurement plan

This tests your ability to translate a vague business goal into a structured, measurable technical plan. Clarify the goal with the PM, define a primary metric and supporting metrics, then create an instrumentation spec.

Analytics & Metrics2 min read

Instrumenting a New User Interaction for Analytics

Tests your grasp of the full data lifecycle. A good answer covers event definition, client-side implementation, the backend pipeline, and end-to-end verification.

Analytics & Metrics2 min read

Track an 'Export to CSV' button's usage and outcomes

This tests your ability to design a robust event schema, not just track a click. A great answer uses one custom event name with a 'status' parameter ('initiated', 'success', 'failure'). A red flag is suggesting multiple event names for one action.

Analytics & Metrics1 min read

Describe the client-side event for an 'Add to Cart' button

This tests your ability to design analytics events for future analysis. Name a standard event like `add_to_cart` and list item parameters (`item_id`, `price`, `quantity`).

React & Next.js1 min read

Next.js Instrumentation: Code That Runs on Server Startup

Next.js's `instrumentation.ts` file runs code once when your server process starts, before any requests. It's ideal for setting up global logging, monitoring like OpenTelemetry, or database connections.

Monitoring & SRE2 min read

OpenTelemetry API: The Stable Interface for Your Code

The OpenTelemetry API provides stable interfaces for your code to generate telemetry. This lets you instrument your application once, while the SDK implementation handles the actual data processing and export, which can be swapped out later.

Growth & Experimentation2 min read

Instrumentation Plan: Your Analytics Blueprint

An instrumentation plan is the blueprint for what user actions to track. It's like deciding where to put security cameras *before* building, not after a break-in. It's essential for new features and for cleaning up messy analytics.

Growth & Experimentation2 min read

Event-based Analytics: Tracking User Actions, Not Page Views

Event-based analytics tracks specific user actions—clicks, purchases, signups—not just page views. This model powers product analytics tools to map user journeys and measure feature adoption. The footgun is tracking everything, creating noisy, unusable data.

CI/CD & Automation2 min read

RASP: An Immune System for Your Application

Think of RASP as an application's immune system, using runtime instrumentation to block attacks from within. It provides real-time protection against threats that static analysis or network firewalls miss.

Android & Kotlin2 min read

ActivityScenario: Test Your Android Activities in Isolation

ActivityScenario lets you launch and control an Android Activity's lifecycle within an instrumented test. Use it to verify UI behavior during events like screen rotation or process death, isolating the component for reliable testing.

Analytics & Metrics2 min read

Tracking Schema: Your Analytics Naming Convention

A tracking schema is the shared dictionary for your analytics, defining how you name user actions (events) and their details (properties). It's crucial for ensuring one team tracks "Song Played" the same way as another.

Analytics & Metrics2 min read

Amplitude: Analytics for Understanding User Behavior

Think of Amplitude as a DVR for user actions, not just a traffic counter. It tracks what users *do* inside your app, letting you build funnels and segment users by behavior.

Analytics & Metrics1 min read

Event Autocapture: Low-Effort Frontend Analytics

Event autocapture is like a security camera for your UI, recording all user interactions automatically. It's used in web analytics to capture clicks and page views with minimal setup, letting you analyze behavior without manually instrumenting every button.

Analytics & Metrics2 min read

Event Tracking: Measuring What Users Do

Event tracking turns user actions like clicks and purchases into analyzable data. Analytics platforms use this data to report on engagement and conversions. The biggest footgun is inconsistent naming, which pollutes your data and breaks reports.

Get Instrumentation bites daily.

Five a day, five minutes, offline. With quizzes so it sticks.

Open testing — you’ll join as an early tester.