Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#React

Advanced Zustand Custom Middleware for Telemetry

Customize the variables below to instantly engineer your prompt.

Required Variables

zustand-custom-middleware-telemetry.txt
Act as a Frontend Observability Engineer. Build a sophisticated, highly performant custom Zustand middleware function specifically designed to intercept and log application state mutations for an enterprise platform. The middleware must meticulously trap all state transitions, but it must contain a strict regex/validation layer that automatically and brutally redacts highly [SENSITIVE_STATE_KEYS] (like credit card hashes, passwords, or PII) before they ever leave the client device. Furthermore, engineer the middleware to selectively batch and asynchronously transmit only the specific, high-value state mutations defined in the [TRACKED_ACTIONS] array (e.g., `SET_CART_TOTAL`) directly to the external [TELEMETRY_PROVIDER] (e.g., Datadog RUM or Segment). Guarantee the middleware utilizes Web Workers or `requestIdleCallback` so it fundamentally cannot introduce main-thread latency.

Example Text Output

"A high-performance middleware utility that provides developers with clean telemetry logs while mathematically guaranteeing absolute user privacy and zero UI blocking."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced Zustand Custom Middleware for Telemetry" prompt used for?

A high-performance middleware utility that provides developers with clean telemetry logs while mathematically guaranteeing absolute user privacy and zero UI blocking.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.