A Workspace can be slow to open even when the applications inside it start quickly. The delay may occur earlier, while the window hosting those applications is loading. With io.Insights, you can follow the Workspace creation trace into that window’s startup and inspect the operations taking the time.
Prerequisites
- io.Connect Desktop 10.5 or later with io.Insights and trace collection enabled.
instrumentAppStartupenabled see auto instrumentation.- Software for viewing the captured trace, such as Jaeger or Grafana with a tracing data source configured.
This walkthrough assumes you already collect traces.
1. Follow Workspace creation into the hosting window
Open the trace for the affected Workspace opening. Follow the sequence from creating the hosting window (the Frame) to loading that window and starting the applications inside it.
In the example, expand create → createEmptyFrame → appStartup. The hosting app is labelled workspaces-demo. Its appStartup span takes 4.51 seconds. Under it, a resource span takes 4.48 seconds, making it the operation to inspect next.
Follow the branch into the hosting window before assuming the delay belongs to an application inside the Workspace. The nested spans overlap; do not add their durations. View the full screenshot.
2. Inspect the slow resource
Select the resource span and inspect its attributes:
| Detail | Recorded value |
|---|---|
| Duration | 4.48 seconds |
tracingAppName |
workspaces-demo |
initiatorType |
script |
cacheState |
miss |
encodedBodySize |
4,310,122 bytes (about 4.31 MB) |
ttfbMs |
3,802 ms |
url |
…/workspaces-demo/dist/workspaces.bundle.js |
The recorded time to first byte (ttfbMs) is 3,802 ms: most of the resource span’s 4.48 seconds. This points the investigation toward the time before the response body starts arriving, rather than treating the entire duration as download time.
The trace identifies a slow load of the hosting window’s script bundle, recorded with cacheState set to miss and gives the team a specific resource to investigate. They can check the request timing, connection and server behaviour to establish why this resource took so long to load.
After making a change, capture another Workspace opening and compare the same resource span and the Workspace opening time. Record whether the request was a cache hit or miss so a warm-cache run is not mistaken for proof that an underlying delivery issue was fixed.
Watch the example from Velko’s io.Insights demonstration and read more
- From Symptom to Root Cause: Tracking Issues with io.Insights Traces — recording and Q&A: the Workspace startup example begins around 23:29.
- Diagnose slow application startup caused by blocking JavaScript with io.Insights: a related case.
- io.Insights auto instrumentation: application startup and resource-load instrumentation.

