# Diagnose a slow button click caused by a large context update with io.Insights

**URL:** <https://community.interop.io/t/diagnose-a-slow-button-click-caused-by-a-large-context-update-with-io-insights/782>\
**Category:** io.Insights\
**Created:** [November 18, 2026, 11:48am UTC](https://community.interop.io/t/diagnose-a-slow-button-click-caused-by-a-large-context-update-with-io-insights/782 "2026-11-18T11:48:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VelkoNikolov](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.interop.io/velkonikolov/32/383_2.png) [@VelkoNikolov](https://community.interop.io/u/VelkoNikolov)\
**Post date:** [November 18, 2026, 11:48am UTC](https://community.interop.io/t/diagnose-a-slow-button-click-caused-by-a-large-context-update-with-io-insights/782/1 "2026-11-18T11:48:33Z")

</div>

A slow button click can be caused by the work it triggers and with io.Insights, you can follow the interaction through a Click Stream trace and inspect the cause, duration and payload size of the operations involved. Below we show how to trace a roughly two-second delay to a context update carrying about 80.8 MB of data.

## Pre-requisites

- An io.Connect Desktop environment with io.Insights enabled and traces being collected.
- Click Stream tracing enabled for the web app, with the relevant context-operation spans retained by your trace filters. Click Stream is disabled by default; see [Desktop trace configuration](https://docs.interop.io/insights/configuration/io-connect-desktop/index.html#traces-click_stream).

## 1. Find the click that triggered the delay

Open the affected application’s Click Stream trace for the reported interaction. Expand the click and its event listeners to follow the operations triggered by the button.

[![Click Stream trace expanded from the button click to a listener containing the 1.95-second context update.](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/f06d148cfc6bb8727366023082604ef5402c862f.png)](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/3098373d585c425a8035fb1d0abafd9fd57b1d5d.jpeg)

_[View the full screenshot](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/3098373d585c425a8035fb1d0abafd9fd57b1d5d.jpeg)._

## 2. Inspect the context update’s attributes

Select `module.update` and inspect the span details. Here’s the revealing info:

| Detail | Recorded value |
| --- | --- |
| Duration | 1.95 seconds |
| `context` | `insights.demo.Positions` |
| `bytes` | 80,812,330 (about 80.8 MB) |
| `keys` | 12,000 |

[![Context update details showing the 1.95-second duration and the bytes, context and keys attributes.](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/87067d2149ba7f098657f1f25d4eb0d5f9c65843.png)](https://canada1.discourse-cdn.com/flex028/uploads/interopio/original/1X/6eec235d60878158d9b289b695f70087d904875c.jpeg)

The large context (80mb) update is the cause of the delay in this example.

## 3. Review the data-sharing operation

Share the trace, context name, duration and payload size with the application team. The question is whether that interaction needs to send this much data through a shared context or there’s a more efficient way to handle it. After changing the application, repeat the interaction and compare the update duration and payload size with the original trace.

## Find more

- [From Symptom to Root Cause: Tracking Issues with io.Insights Traces (recording and Q&A)](https://community.interop.io/t/from-symptom-to-root-cause-io-insights-traces-recording-and-q-a/761): the large-context example begins around **29:30** ; the investigation starts around **29:55**.
- [io.Insights Desktop configuration](https://docs.interop.io/insights/configuration/io-connect-desktop/index.html): enabling tracing, Click Stream settings and span filters.
- [io.Insights Dashboard Walkthrough: Startup Performance, Traces and Logs](https://community.interop.io/t/io-insights-dashboard-walkthrough-startup-performance-traces-and-logs/766) : see io.Insights data in Grafana and Jaeger
