Skip to main content

Signals

Overview

The following sections describe all default platform metrics published by io.Connect Browser, the type of Instrument used for their implementation, and any additional attributes they may have in their data points. The default platform metrics are published only by the Main app.

All published metrics have common resource attributes and common metrics attributes.

⚠️ Note that some of the metrics available in io.Connect Desktop aren't supported in io.Connect Browser due to limitations of modern browsers.

ℹ️ For details on the structure of the metrics payloads and the attributes common to all metrics, see the Metrics > Overview section.

ℹ️ For details on configuring the default platform metrics in io.Connect Browser, see the Configuration > io.Connect Browser section.

Platform

The following sections describe the available metrics related to platform performance.

platform_error

Instrument Type Unit Description
Counter number The number of platform errors received during each platform session.

The metric doesn't carry the error text or any other details about the error in order to avoid publishing attributes with unbounded values.

platform_startup

Instrument Type Unit Description
Gauge milliseconds The time it took to load the io.Connect platform.

Measures the time it takes for the @interopio/browser-platform library to initialize.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"api" Version string of the @interopio/browser-platform library.

Apps

The following sections describe the available metrics related to app performance.

app_count

Instrument Type Unit Description
UpDownCounter number The number of app instances currently running.

The metric reflects how many app instances are running at the moment. It's incremented when an app instance is started and decremented when one is stopped.

Additional attributes:

Attribute Description
"application" The name of the app within the io.Connect framework for which the "app_count" metric was published.

app_duration

Instrument Type Unit Description
Gauge milliseconds The time an app has been on focus during each platform session.

Each period on focus is measured separately - when an app loses focus, the duration of that period is recorded as an individual value. All values accumulated since the last export are published at each publishing interval.

The currently focused app isn't reported until it loses focus. Use the "app_duration_soft" metric instead if you need the time on focus of an app to be reflected while the app is still focused.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"application" The name of the app within the io.Connect framework for which the "app_duration" metric was published.

app_duration_soft

Available since io.Connect Browser 5.0

⚠️ Note that this metric is disabled by default. To start publishing it, enable it explicitly in the metrics configuration.

Instrument Type Unit Description
Gauge milliseconds The time an app has been on focus during each platform session, including the app that's currently on focus.

Measures the same intervals as the "app_duration" metric, but the currently focused app doesn't have to lose focus in order for its time on focus to be reported - at every publishing interval the ongoing period on focus is closed and published, and a new one is started.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"application" The name of the app within the io.Connect framework for which the "app_duration_soft" metric was published.

app_error

Instrument Type Unit Description
Counter number The number of app errors received during each platform session.

The metric reports the errors received in the handlers for the "error" and "unhandledrejection" events in web apps.

The metric doesn't carry the error message or any other details about the error in order to avoid publishing attributes with unbounded values.

Additional attributes:

Attribute Description
"application" The name of the app within the io.Connect framework for which the "app_error" metric was published.

app_started

Instrument Type Unit Description
Counter number The number of times an app has been started during each platform session.

Additional attributes:

Attribute Description
"application" The name of the app within the io.Connect framework for which the "app_started" metric was published.

app_startup

Instrument Type Unit Description
Gauge milliseconds The time it took to start an app.

Measures the interval from receiving the request for starting the app until the io.Connect API has been initialized in it.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"api" Version string of the @interopio/browser library.
"application" The name of the app within the io.Connect framework for which the "app_startup" metric was published.

app_stopped

Instrument Type Unit Description
Counter number The number of times an app has been stopped during each platform session.

Additional attributes:

Attribute Description
"application" The name of the app within the io.Connect framework for which the "app_stopped" metric was published.

Workspaces

The following sections describe the available metrics related to Workspaces performance.

The Workspace startup metrics measure the overall startup of a Workspace and its individual stages. The frame startup measurements are published when a new Workspaces App instance is created. The Workspace startup and the app startup measurements require the Workspace windows to finish loading. The component startup measurements aren't published for resumed or reused Workspaces. By default, the startup measurements involving app windows that were already running aren't published (see Default Metric Filters).

ℹ️ To examine the operations involved in an individual Workspace startup, use the Workspace trace.

workspace_count

Instrument Type Unit Description
UpDownCounter number The number of Workspaces currently open.

This metric reflects how many Workspaces are open at the moment. It's incremented when a Workspace is opened and decremented when it's closed.

Renaming a Workspace is also handled by this metric - the count for the previous Workspace Layout name is decremented and the count for the new one is incremented.

Additional attributes:

Attribute Description
"layout" The name of the Workspace for which the metric was published. The value will be "unknown" if not tied to a specific Workspace Layout - e.g., in case of creating a new Workspace, or initialization of a Workspaces App instance with multiple Workspaces in it.

workspace_started

Instrument Type Unit Description
Counter number The number of times a Workspace has been started during each platform session.

The metric is published against the Workspace Layout name at the moment the Workspace is started. Renaming a Workspace isn't tracked - after a rename, the counts accumulated under the previous name stay as they are and the counts for the new name start from zero.

Additional attributes:

Attribute Description
"layout" The name of the Workspace for which the metric was published. The value will be "unknown" if not tied to a specific Workspace Layout - e.g., in case of creating a new Workspace, or initialization of a Workspaces App instance with multiple Workspaces in it.

workspace_startup

Available since io.Connect Browser 5.0

Instrument Type Unit Description
Gauge milliseconds The time it took to start the Workspace.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"complexLoad" Whether the measured startup includes app windows that were already running. Reusing existing windows can reduce startup duration compared to starting all apps as new instances.
"includesFrameCreation" Whether startup includes creating a new Workspaces App instance.
"layout" Name of the Workspace Layout, or "unknown" when no Layout name is available.

workspace_startup_apps

Available since io.Connect Browser 5.0

Instrument Type Unit Description
Gauge milliseconds The time it took to start the apps in the Workspace.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"complexLoad" Whether the measured startup includes app windows that were already running. Reusing existing windows can reduce startup duration compared to starting all apps as new instances.
"includesFrameCreation" Whether startup includes creating a new Workspaces App instance.
"layout" Name of the Workspace Layout, or "unknown" when no Layout name is available.

workspace_startup_component

Available since io.Connect Browser 5.0

Instrument Type Unit Description
Gauge milliseconds The time it took to start the Workspace component.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"complexLoad" Whether the measured startup includes app windows that were already running. Reusing existing windows can reduce startup duration compared to starting all apps as new instances.
"includesFrameCreation" Whether startup includes creating a new Workspaces App instance.
"layout" Name of the Workspace Layout, or "unknown" when no Layout name is available.

workspace_startup_frame

Available since io.Connect Browser 5.0

Instrument Type Unit Description
Gauge milliseconds The time it took to start the Workspaces App instance.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"complexLoad" Whether the measured startup includes app windows that were already running. Reusing existing windows can reduce startup duration compared to starting all apps as new instances.
"includesFrameCreation" Whether startup includes creating a new Workspaces App instance.
"layout" Name of the Workspace Layout, or "unknown" when no Layout name is available.

workspace_startup_frame_init

Available since io.Connect Browser 5.0

Instrument Type Unit Description
Gauge milliseconds The time it took to initialize the Workspaces App.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"complexLoad" Whether the measured startup includes app windows that were already running. Reusing existing windows can reduce startup duration compared to starting all apps as new instances.
"includesFrameCreation" Whether startup includes creating a new Workspaces App instance.
"layout" Name of the Workspace Layout, or "unknown" when no Layout name is available.

workspace_startup_frame_page_load

Available since io.Connect Browser 5.0

Instrument Type Unit Description
Gauge milliseconds The time it took to load the Workspaces App page.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"complexLoad" Whether the measured startup includes app windows that were already running. Reusing existing windows can reduce startup duration compared to starting all apps as new instances.
"includesFrameCreation" Whether startup includes creating a new Workspaces App instance.
"layout" Name of the Workspace Layout, or "unknown" when no Layout name is available.

workspace_startup_frame_workspace_render

Available since io.Connect Browser 5.0

Instrument Type Unit Description
Gauge milliseconds The time it took to render the Workspace in the Workspaces App.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"complexLoad" Whether the measured startup includes app windows that were already running. Reusing existing windows can reduce startup duration compared to starting all apps as new instances.
"includesFrameCreation" Whether startup includes creating a new Workspaces App instance.
"layout" Name of the Workspace Layout, or "unknown" when no Layout name is available.

workspace_stopped

Instrument Type Unit Description
Counter number The number of times a Workspace has been stopped during each platform session.

The metric is published against the Workspace Layout name at the moment the Workspace is stopped. Renaming a Workspace isn't tracked - after a rename, the counts accumulated under the previous name stay as they are and the counts for the new name start from zero.

Additional attributes:

Attribute Description
"layout" The name of the Workspace for which the metric was published. The value will be "unknown" if not tied to a specific Workspace Layout - e.g., in case of creating a new Workspace, or initialization of a Workspaces App instance with multiple Workspaces in it.

Layouts

The following sections describe the available metrics related to Global Layouts performance.

layout_startup

Instrument Type Unit Description
Gauge milliseconds The time it took to restore a Global Layout.

Measures the interval from initiating the operation for restoring the Global Layout until all its components (individual windows, window groups, Workspaces) have been loaded.

Can be configured as a Histogram.

Additional attributes:

Attribute Description
"layout" The name of the Global Layout for which the "layout_startup" metric was published.

Instrumentation Metrics

Available since io.Connect Browser 5.0

The auto instrumentation of web apps can publish the following metrics. Unlike the default platform metrics, the instrumentation metrics are published by each app in which the respective instrumentation is enabled - the Main app and the Browser Clients. Each metric is disabled by default and must be enabled individually in the configuration object of the respective instrumentation. You can also specify a custom name for each metric and custom bucket boundaries for the histogram metrics. Both metrics and traces must be enabled.

To publish only the metrics, without the spans of the respective instrumentation, set the trace property of its configuration object to false.

Requests

The following metrics are published by the request instrumentation enabled via the instrumentRequests property of the traces object:

Metric Instrument Type Unit Description
http.client.request.body.size Histogram bytes Size of the request body. Requests without a body don't contribute a measurement. Enabled via the requestBytesMetric property.
http.client.request.duration Histogram seconds Time from sending the request until the response body is fully received. Enabled via the requestTotalDurationMetric property.
http.client.response.body.size Histogram bytes Size of the response body. Enabled via the responseBytesMetric property.
io.insights.http.client.request.ttfb.duration Histogram seconds Time from sending the request until receiving the response headers. Enabled via the requestFirstByteDurationMetric property.
io.insights.http.client.response.download.duration Histogram seconds Time from receiving the response headers until the response body is fully received. Enabled via the requestBodyDownloadDurationMetric property.
io.insights.http.client.response.download.throughput Histogram bytes per second Download throughput of the response body. Measured only for response bodies of at least 32 KB. Enabled via the requestBodyDownloadThroughputMetric property.

The io.insights.http.client.request.ttfb.duration metric is recorded for every request, including the failed ones, so you can use its sample count to measure the number of requests. The http.client.request.duration, io.insights.http.client.response.download.duration, and io.insights.http.client.response.download.throughput metrics are recorded only for successful requests whose response body has been fully received.

Resources

The following metrics are published by the resource instrumentation enabled via the instrumentResources property of the traces object:

Metric Instrument Type Unit Description
io.insights.resource.cache.state Counter number Number of resource loads by cache state. Use the "cacheState" attribute ("hit", "revalidated", "network", or "unknown") to calculate the cache hit ratio. Enabled via the cacheStateMetric property.
io.insights.resource.connect.duration Histogram seconds Time for establishing a connection, including the TLS handshake. Enabled via the connectDurationMetric property.
io.insights.resource.dns.duration Histogram seconds Time for a DNS lookup. Enabled via the dnsDurationMetric property.
io.insights.resource.download.throughput Histogram bytes per second Download throughput of a resource. Enabled via the downloadThroughputMetric property.
io.insights.resource.tls.duration Histogram seconds Time for a TLS handshake. Enabled via the tlsDurationMetric property.
io.insights.resource.ttfb.duration Histogram seconds Time from sending the request for a resource until receiving the first byte of the response. Enabled via the firstByteDurationMetric property.

The duration metrics record only the phases that have actually occurred - e.g., a resource loaded via a reused connection doesn't contribute a DNS lookup or a connection measurement.

Event Loop

The following metrics are published by the event loop instrumentation enabled via the instrumentEventLoop property of the traces object:

Metric Instrument Type Unit Description
io.insights.event_loop.blocking.duration Histogram seconds Time for which a long frame blocks the main thread beyond the 50 ms threshold. Enabled via the eventLoopBlockingMetric property.
io.insights.event_loop.input.delay Histogram seconds Time from an input event until its handlers start running. Enabled via the inputDelayMetric property.

WebSockets

The following metrics are published by the WebSocket instrumentation enabled via the instrumentWebSockets property of the traces object:

Metric Instrument Type Unit Description
io.insights.websocket.bytes Counter bytes Number of sent and received WebSocket message bytes. Use the "direction" attribute ("send" or "receive") to distinguish between them. Enabled via the bytesMetric property.
io.insights.websocket.connect.duration Histogram seconds Time for establishing a WebSocket connection. Recorded only for successful connections. Enabled via the connectDurationMetric property.
io.insights.websocket.messages Counter number Number of sent and received WebSocket messages. Use the "direction" attribute ("send" or "receive") to distinguish between them. Enabled via the messagesMetric property.

Web Vitals

The following metrics are published by the Web Vitals instrumentation enabled via the instrumentWebVitals property of the traces object. Each metric is recorded once per page, when the page is hidden:

Metric Instrument Type Unit Description
io.insights.web_vitals.cls Histogram score Cumulative layout shift for the session. Enabled via the clsMetric property.
io.insights.web_vitals.inp Histogram seconds Interaction to next paint for the session. Enabled via the inpMetric property.
io.insights.web_vitals.lcp Histogram seconds Final largest contentful paint, measured from the start of the navigation. Enabled via the lcpMetric property.

Custom Metrics

Available since io.Connect Browser 5.0

The Main app and the Browser Clients can publish custom metrics. The following table lists the available custom metric types:

Metric Instrument Type Description
"custom_counter" Counter A monotonically increasing counter that tracks cumulative totals. Use the add() method to increment the metric value by a given amount.
"custom_gauge" Gauge A point-in-time measurement that records the current value. Use the record() method to report the current measurement.
"custom_histogram" Histogram A distribution of measurements aggregated into configurable buckets. Use the record() method to capture individual measurements.
"custom_observable_counter" ObservableCounter Asynchronous monotonically increasing counter. The OpenTelemetry SDK periodically invokes a provided callback to collect the current cumulative total.
"custom_observable_gauge" ObservableGauge Asynchronous point-in-time measurement. The OpenTelemetry SDK periodically invokes a provided callback to collect the current value.
"custom_observable_up_down_counter" ObservableUpDownCounter Asynchronous bidirectional counter. The OpenTelemetry SDK periodically invokes a provided callback to collect a cumulative value that can increase or decrease.
"custom_up_down_counter" UpDownCounter A bidirectional counter that tracks quantities which can go up and down. Use the add() method with positive or negative values.

The observable metrics can be created only via the Insights API. The other custom metrics can also be defined in the configuration.