• Back to io.Connect Desktop docs
io.Connect Desktop Documentation

API Reference Documentation

  • Back to io.Connect Desktop docs
Press/
  • io.Connect Desktop
  • App Management
  • App Preferences
  • Apps
  • Channels
  • Cookies
  • Displays
  • Hotkeys
  • Insights
  • Intents
  • Interception
  • Interop
  • Layouts
  • Logger
  • Metrics
  • Modals
  • Notifications
  • Platform
  • Pub Sub
  • Search
  • Shared Contexts
  • Themes
  • Windows
  • Workspaces

Insights

6.19.0

io.Insights API.

APIobject

Properties

Property Type Default Required Description
logs LogsManager

io.insights.logs

metrics MetricsManager

io.insights.metrics

settings TSettings
started boolean
traces TracesManager

io.insights.traces

Methods

  • start
  • stop
  • waitForFinalExport

startmethod

Signature

() => Promise<void>

stopmethod

Signature

() => Promise<void>

waitForFinalExportmethod

Signature

(timeoutMs?: number) => Promise<void>

Parameters

Name Type Required Description
timeoutMs number

APIBuilderobject

Description

Builder interface for constructing the IO.Insights API.

Properties

Property Type Default Required Description
logger Logger

Logger instance used by the builder and child managers.

metricsBuilder MetricsManagerBuilder

Metrics manager builder instance.

settings Partial<Settings>

Settings configuration for the API.

tracesBuilder TracesManagerBuilder

Traces manager builder instance.

Methods

  • build
  • withLogger
  • withMetrics
  • withSettings
  • withTraces

buildmethod

Signature

() => API

Description

Builds and returns the configured API container.

withLoggermethod

Signature

(logger: Logger) => this

Description

Sets the logger to be used by the observability system.

Parameters

Name Type Required Description
logger Logger
  • The logger implementation to use

withMetricsmethod

Signature

() => MetricsManagerBuilder

Description

Initializes the metrics manager builder.

withSettingsmethod

Signature

(settings: Partial<Settings>) => this

Description

Sets the configuration settings for the observability system.

Parameters

Name Type Required Description
settings Partial<Settings>
  • The settings to apply

withTracesmethod

Signature

() => TracesManagerBuilder

Description

Initializes the traces manager builder.

AppCPUobject

Properties

Property Type Default Required Description
app string
cpu number
instance string

AppMemoryobject

Properties

Property Type Default Required Description
app string
instance string
memory number

AttributeDataobject

Description

Interface for structured attribute data attached to spans, metrics, or log entries. Supports nested objects and arrays to represent complex attribute hierarchies.

AutoInstrumentationOptionsobject

Description

Configuration for automatic instrumentation of common browser operations. Enables automatic tracing of document load, user interactions, fetch requests, and XHR calls.

Properties

Property Type Default Required Description
documentLoad boolean | DocumentLoadInstrumentationConfig
fetch boolean | FetchInstrumentationConfig
ignoreObservabilityUrls boolean
userInteraction boolean | UserInteractionInstrumentationConfig
xhr boolean | XMLHttpRequestInstrumentationConfig

ClickstreamTraceConfigobject

Description

Configuration for Clickstream trace behavior. Controls how user interaction events are tracked and organized in traces.

Properties

Property Type Default Required Description
descriptiveName boolean true

If true, the Clickstream trace spans will be named interopio.api.clickstream.. If false, the Clickstream trace spans will be named interopio.api.clickstream.

enabled boolean

Whether the Clickstream trace is enabled.

events string[] ["click"]

List of DOM event names to capture as Clickstream trace spans.

nestEventListeners boolean true

If true, io.Insights will try to nest spans from other event listeners for the same event under the Clickstream span. This is not guaranteed to always work due to specifics of how browsers execute event listeners, and will only work for listeners attached after io.Connect was initialized.

structure "sibling" | "nested" "sibling"

If sibling, all spans in the Clickstream trace will be nested under the same root span. This is useful when working with visualization interfaces that do not handle arbitrarily nested spans.

If nested, every span in the Clickstream trace will be nested under the previous span. This is useful for some kinds of querying.

InstanceActionHandlerArgsobject

Properties

Property Type Default Required Description
application string

InstanceCrashHandlerArgsobject

Properties

Property Type Default Required Description
application string
reason string

InstanceErrorHandlerArgsobject

Properties

Property Type Default Required Description
application string

InstanceFocusedHandlerArgsobject

Properties

Property Type Default Required Description
application string
focused boolean

InstanceReadyHandlerArgsobject

Properties

Property Type Default Required Description
api string
application string
endTime Date
startTime Date

LayoutRestoredHandlerArgsobject

Properties

Property Type Default Required Description
endTime Date
layout string
startTime Date

Log4JSToOTELAppenderConfigobject

Description

This interface describes the log4js appender configuration that controls the @interopio/log4js-otel bridge appender.

Properties

Property Type Default Required Description
layout any

log4js layout to use for structuring the log entries. If not specified, uses MessagePassThroughLayout.

logErrorsInConsole boolean true

Whether errors in the @interopio/log4js-otel bridge appender will be logged to the console.

maxRecordsBeforeOTELActive number 10000

Maximum number of log records to store in memory before the OTEL SDK has finished initializing. Use -1 for an infinite number.

maxTimeBeforeOTELActiveMs number -1

Maximum duration of time to store log entries in memory before the OTEL SDK has finished initializing. Use -1 for an infinite duration.

LogFilterobject

Description

Used to match and control publishing of log entries.

Properties

Property Type Default Required Description
allowedAttributes string[]

If specified, any attributes missing from the list will be removed from the log entry before publishing it.

bodyRegex string

Used to match the text of the log entry.

categoryName string

Used to match the category of the log entry.

enabled boolean

If false, the log entry will not be published.

hideRegex string

If specified, the log entry will have text matching this regex replaced with asterisks.

severity "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"

Used to match the severity of the log entry.

Loggerobject

Properties

Property Type Default Required Description
level LoggerLogLevel

Methods

  • debug
  • error
  • info
  • verbose
  • warn

debugmethod

Signature

(message: string, args: unknown[]) => void

Parameters

Name Type Required Description
message string
args unknown[]

errormethod

Signature

(message: string, args: unknown[]) => void

Parameters

Name Type Required Description
message string
args unknown[]

infomethod

Signature

(message: string, args: unknown[]) => void

Parameters

Name Type Required Description
message string
args unknown[]

verbosemethod

Signature

(message: string, args: unknown[]) => void

Parameters

Name Type Required Description
message string
args unknown[]

warnmethod

Signature

(message: string, args: unknown[]) => void

Parameters

Name Type Required Description
message string
args unknown[]

LogOptionsobject

Properties

Property Type Default Required Description
allowedAttributes string[]

If specified, any attributes missing from the list will be removed from the log entry before publishing it.

enabled boolean

If false, the log entry will not be published.

hideRegex string

If specified, the log entry will have text matching this regex replaced with asterisks.

LogsManagerobject

Description

Logs API.

Properties

Property Type Default Required Description
settings TSettings
started boolean

Methods

  • emit
  • start
  • stop
  • waitForFinalExport

emitmethod

Signature

(logRecord: LogRecord) => Promise<void>

Parameters

Name Type Required Description
logRecord LogRecord

startmethod

Signature

() => Promise<void>

stopmethod

Signature

() => Promise<void>

waitForFinalExportmethod

Signature

(timeoutMs?: number) => Promise<void>

Parameters

Name Type Required Description
timeoutMs number

LogsManagerBuilderobject

Methods

  • build
  • withLogger
  • withSettings

buildmethod

Signature

() => LogsManager

withLoggermethod

Signature

(logger: Logger) => this

Parameters

Name Type Required Description
logger Logger

withSettingsmethod

Signature

(settings: TracesSettings) => this

Parameters

Name Type Required Description
settings TracesSettings

LogsSettingsobject

Properties

Property Type Default Required Description
additionalAttributes { [x: string]: unknown; } | (() => { [x: string]: unknown; })

Additional logs attributes to publish as part of each log entry, specified as key/value pairs. You can use environment variables as values. Environment variables must start and end with a percent sign (e.g., %MyEnvVar%), and can contain a fallback value (e.g., %MyEnvVar?literalDefaultValue%).

additionalResourceAttributes { [x: string]: unknown; } | (() => { [x: string]: unknown; })

Additional attributes to publish as part of the OTEL resource definition, specified as key/value pairs. You can use environment variables as values. Environment variables must start and end with a percent sign (e.g., %MyEnvVar%), and can contain a fallback value (e.g., %MyEnvVar?literalDefaultValue%).

addResourceAttributesToAttributes boolean false

Whether to add resource attributes to log entry attributes.

compression CompressionAlgorithm

Compression algorithm to use when exporting logs.

concurrencyLimit number

Maximum number of concurrent logs export requests.

defaults LogOptions

Default settings if appropriate entries aren't found in 'filters' collection.

enabled boolean false

Whether logging functionality is enabled. If disabled, API is still usable, but methods are no-ops.

exporterSettings OTLPExporterConfigBase

Settings for the OTLP exporter used to send logs.

filters LogFilter[]

Array of filter entries used to determine whether a particular log entry will be emitted, and which attributes will be included.

If no matching filter entry is found, the settings from 'defaults' are used.

headers { [x: string]: string; } | (() => { [x: string]: string; })

Additional headers to send in HTTP requests, e.g. when using HTTP exporters.

keepAlive boolean true

Whether to keep the connection alive when sending logs.

levelCountMetric string

Name of log level counter metric, set to null to disable.

Defaults to 'insights_log_level_count'.

logExporters (exporterSettings: OTLPExporterNodeConfigBase, settings: LogsSettings, otelSettings: Settings) => LogRecordExporter[]

Log record exporters.

loggerProvider (loggerProviderSettings: LoggerProviderConfig, settings: LogsSettings, otelSettings: Settings) => LoggerProvider

Logger provider instance.

loggerProviderSettings LoggerProviderConfig

Configuration for the logger provider.

logProcessors (processorSettings: BatchSpanProcessorBrowserConfig, exporterSettings: OTLPExporterNodeConfigBase, settings: LogsSettings, otelSettings: Settings) => LogRecordProcessor[]

Log record processors.

maxAttributeDepth number

Maximum length for log attribute object nesting.

processorSettings BatchLogRecordProcessorBrowserConfig

Settings for batching log records before export.

publishInterval number

Interval in milliseconds between logs export batches.

startupTraceAssociationTimeoutMs number

How long after application startup will any log entries automatically be associated with the application startup trace.

timeoutMillis number 10000ms.

Maximum time the OTLP exporter will wait for each batch export.

url string

OTLP logs exporter endpoint URL.

useDefaultFilters boolean true

If true, use a predefined list of filters for well-known platform logs.

useSSOAuth boolean false

If true, use io.Connect's SSO login information when making requests to the OTEL collector.

useSSOAuthRawToken boolean true

Used if io.Connect's SSO login information contains a token property. If true, the token property will be used as-is. If false, the token property may be prepended with the string "Bearer ", if it does not contain an Authorization type prefix.

Managerobject

Properties

Property Type Default Required Description
settings TSettings
started boolean

Methods

  • start
  • stop
  • waitForFinalExport

startmethod

Signature

() => Promise<void>

stopmethod

Signature

() => Promise<void>

waitForFinalExportmethod

Signature

(timeoutMs?: number) => Promise<void>

Parameters

Name Type Required Description
timeoutMs number

Metricobject

Properties

Property Type Default Required Description
settings MetricSettings
started boolean

Methods

  • start
  • stop

startmethod

Signature

() => Promise<void>

stopmethod

Signature

() => Promise<void>

MetricAttributeSettingsobject

Description

Controls the publishing of specific attributes.

Properties

Property Type Default Required Description
reduceModality number

If specified, the attribute value will be hashed and truncated to this length to reduce the modality of the published metrics. Set to 0 to drop the attribute entirely. Set to -1 to override any defaults.

MetricDefaultFilterobject

Properties

Property Type Default Required Description
attributes { complexLoad?: boolean; includesFrameCreation?: boolean; }
enabled boolean
overrideDefaultFilters boolean
sample number | boolean
type MetricType

MetricFilterobject

Properties

Property Type Default Required Description
attributes { complexLoad?: boolean; includesFrameCreation?: boolean; }
enabled boolean
name string
overrideDefaultFilters boolean
sample number | boolean
type MetricType

MetricPublishingSettingsobject

Description

Controls the publishing of the metric.

Properties

Property Type Default Required Description
attributeSettings { [x: string]: MetricAttributeSettings; }

Controls the publishing of specific attributes.

sample number | boolean

MetricsDependencyContainerobject

Properties

Property Type Default Required Description
instanceCrashHandler InstanceCrashHandler
instanceErrorHandler InstanceErrorHandler
instanceFocusedHandler InstanceFocusedHandler
instanceReadyHandler InstanceReadyHandler
instanceStartedHandler InstanceActionHandler
instanceStoppedHandler InstanceActionHandler
layoutRestoredHandler LayoutRestoredHandler
performanceProvider PerformanceProvider
platformErrorHandler PlatformErrorHandler
platformStartedHandler PlatformStartedHandler
workspaceAppsStartedHandler WorkspaceGenericActionHandler<WorkspaceAppsStartedHandlerArgs>
workspaceComponentCreatedHandler WorkspaceGenericActionHandler<WorkspaceTimedActionHandlerArgs>
workspaceFrameCreatedHandler WorkspaceGenericActionHandler<WorkspaceTimedActionHandlerArgs>
workspaceFrameInitHandler WorkspaceGenericActionHandler<WorkspaceTimedActionHandlerArgs>
workspaceFramePageLoadHandler WorkspaceGenericActionHandler<WorkspaceTimedActionHandlerArgs>
workspaceFrameWorkspaceRenderHandler WorkspaceGenericActionHandler<WorkspaceTimedActionHandlerArgs>
workspaceLoadedHandler WorkspaceGenericActionHandler<WorkspaceLoadedHandlerArgs>
workspaceRestoredHandler WorkspaceGenericActionHandler<WorkspaceRestoredHandlerArgs>
workspaceSavedHandler WorkspaceGenericActionHandler<WorkspaceSavedHandlerArgs>
workspaceSelectedHandler WorkspaceGenericActionHandler<WorkspaceActionHandlerArgs>
workspaceStartedHandler WorkspaceGenericActionHandler<WorkspaceActionHandlerArgs>
workspaceStartupHandler WorkspaceGenericActionHandler<WorkspaceStartupHandlerArgs>
workspaceStoppedHandler WorkspaceGenericActionHandler<WorkspaceActionHandlerArgs>

MetricSettingsobject

Properties

Property Type Default Required Description
additionalAttributes { [key: string]: unknown; } | (() => { [key: string]: unknown; })
baseMetricType "histogram" | "gauge"
buckets number[]
description string
enabled boolean
name string
platformVersion string
publishingSettings MetricPublishingSettings
type MetricType
unit string
user string

MetricsManagerobject

Description

Metrics API.

Properties

Property Type Default Required Description
settings TSettings
started boolean

Methods

  • get
  • getFromSettings
  • start
  • stop
  • waitForFinalExport

getmethod

Signature

(type: MetricType) => Metric

Parameters

Name Type Required Description
type MetricType

getFromSettingsmethod

Signature

(settings: MetricSettings) => Metric

Parameters

Name Type Required Description
settings MetricSettings

startmethod

Signature

() => Promise<void>

stopmethod

Signature

() => Promise<void>

waitForFinalExportmethod

Signature

(timeoutMs?: number) => Promise<void>

Parameters

Name Type Required Description
timeoutMs number

MetricsManagerBuilderobject

Methods

  • build
  • withDependencyContainer
  • withLogger
  • withMeterProvider
  • withSettings

buildmethod

Signature

() => MetricsManager

withDependencyContainermethod

Signature

(container: MetricsDependencyContainer) => this

Parameters

Name Type Required Description
container MetricsDependencyContainer

withLoggermethod

Signature

(logger: Logger) => this

Parameters

Name Type Required Description
logger Logger

withMeterProvidermethod

Signature

(func: MetricsMeterProviderCreateFunc) => this

Parameters

Name Type Required Description
func MetricsMeterProviderCreateFunc

withSettingsmethod

Signature

(settings: Settings) => this

Parameters

Name Type Required Description
settings Settings

MetricsMeterProviderobject

Methods

  • forceFlush

forceFlushmethod

Signature

() => Promise<void>

MetricsSettingsobject

Properties

Property Type Default Required Description
additionalAttributes { [x: string]: unknown; } | (() => { [x: string]: unknown; })

Additional metrics properties to publish as part of each metric, specified as key/value pairs. You can use environment variables as values. Environment variables must start and end with a percent sign (e.g., %MyEnvVar%), and can contain a fallback value (e.g., %MyEnvVar?literalDefaultValue%).

additionalResourceAttributes { [x: string]: unknown; } | (() => { [x: string]: unknown; })

Additional attributes to publish as part of the OTEL resource definition, specified as key/value pairs. You can use environment variables as values. Environment variables must start and end with a percent sign (e.g., %MyEnvVar%), and can contain a fallback value (e.g., %MyEnvVar?literalDefaultValue%).

addResourceAttributesToAttributes boolean false

Whether to add resource attributes to metric data point attributes.

compression CompressionAlgorithm

Compression algorithm to use when exporting metrics.

concurrencyLimit number

Maximum number of concurrent metric export requests.

defaultPublishingSettings MetricPublishingSettings

Default publishing settings for metrics.

dependencyContainerOverride MetricsDependencyContainer

Optional override for the dependency container providing platform-specific metric handlers.

enabled boolean false

Whether metrics functionality is enabled. If disabled, API is still usable, but methods are no-ops.

exporterSettings OTLPExporterNodeConfigBase & OTLPMetricExporterOptions

Options to use when creating the OTLPMetricExporter to use when exporting metrics.

filters MetricFilter[]

Array of filter rules to determine which metrics should be collected and exported.

headers { [x: string]: string; } | (() => { [x: string]: string; })

Additional headers to send in HTTP requests, e.g. when using HTTP exporters.

hostname string

Hostname to include in exported metrics.

keepAlive boolean

Whether to use HTTP keep-alive connections for metric exports.

meter Partial<MetricsSettings>

Partial MetricsSettings for meter configuration.

meterProvider (meterProviderSettings: MeterProviderOptions, metricsSettings: MetricsSettings, settings: Settings) => MeterProvider
meterProviderSettings MeterProviderOptions
metricExporters (exporterSettings: OTLPExporterNodeConfigBase & OTLPMetricExporterOptions, tracesSettings: MetricsSettings, settings: Settings) => PushMetricExporter[]

Custom metric exporter implementations for pushing metrics.

metricReaders (readerSettings: Partial<PeriodicExportingMetricReaderOptions>, exporterSettings: OTLPExporterNodeConfigBase & OTLPMetricExporterOptions, tracesSettings: MetricsSettings, settings: Settings) => MetricReader[]

Custom metric reader implementations for pushing metrics.

metrics MetricSettings[]

Array of individual metric configurations to collect.

platformMetricsEnabled boolean

Whether to enable automatic collection of platform-level metrics (CPU, memory, etc.).

publishInterval number

Interval in milliseconds between metric export batches.

readerSettings PeriodicExportingMetricReaderOptions

Options to use when creating the PeriodicExportingMetricReader to use when exporting metrics.

timeoutMillis number 10000ms.

Maximum time the OTLP exporter will wait for each batch export.

url string

The destination URL for exporting metrics via OTLP.

useDefaultFilters boolean

Whether to apply predefined default filters for platform metrics.

useLegacyWorkspaceStartupMetric boolean false

If true, workspace_startup will be published as the legacy histogram metric from the io.Insights beta releases.

useSSOAuth boolean false

If true, use io.Connect's SSO login information when making requests to the OTEL collector.

useSSOAuthRawToken boolean true

Used if io.Connect's SSO login information contains a token property. If true, the token property will be used as-is. If false, the token property may be prepended with the string "Bearer ", if it does not contain an Authorization type prefix.

PerformanceProviderobject

Methods

  • getAppsCPU
  • getAppsMemory
  • getSystemCPU
  • getSystemMemory

getAppsCPUmethod

Signature

() => Promise<AppCPU[]>

getAppsMemorymethod

Signature

() => Promise<AppMemory[]>

getSystemCPUmethod

Signature

() => Promise<SystemCPU>

getSystemMemorymethod

Signature

() => Promise<SystemMemory>

PlatformErrorHandlerArgsobject

PlatformStartedHandlerArgsobject

Properties

Property Type Default Required Description
api string
endTime Date
idleTimeMs number
startTime Date

PropagationInfoobject

Properties

Property Type Default Required Description
forceTracing boolean
traceparent string
tracestate string

PropagationInfoCarrierobject

Properties

Property Type Default Required Description
__interopIOTracePropagationInfo PropagationInfo

SamplingSettingsobject

Properties

Property Type Default Required Description
attributes { [key: string]: string | number | boolean; }

Span attributes that determine if span will match this sampling setting entry. Useful e.g. for checking otel.library.name/otel.scope.name attribute to filter auto-instrumentated spans. Start strings with "#" for case-insensitive regex match.

context { [key: string]: string | number | boolean; }

Context values that determine if span will match this sampling setting entry. 'Context' here refers to the object returned from the 'contextGetter' callback at the time of sampling, not the OTEL context concept. This is useful for sampling based on the current client environment - current user, application, server node, time of day, etc. Start strings with "#" for case-insensitive regex match.

name string

Span name to determine if span will match this sampling setting entry. Start string with "#" for case-insensitive regex match

sample number | boolean

Probability that span will be sampled, based on its traceId Spans from the same trace will always either all be sampled, or none will, provided they all have the same sampling probability. If true: will be sampled If false: will not be sampled If number between 0 and 1: has this probability of being sampled. Precision: 3 decimal digits

Settingsobject

Properties

Property Type Default Required Description
additionalAttributes { [x: string]: unknown; } | (() => { [x: string]: unknown; })

Additional properties to publish as part of each OpenTelemetry signal, specified as key/value pairs. You can use environment variables as values. Environment variables must start and end with a percent sign (e.g., %MyEnvVar%), and can contain a fallback value (e.g., %MyEnvVar?DefaultValue%).

additionalResourceAttributes { [x: string]: unknown; } | (() => { [x: string]: unknown; })

Additional properties to publish as part of the OpenTelemetry resource definition for all OpenTelemetry signals, specified as key/value pairs. You can use environment variables as values. Environment variables must start and end with a percent sign (e.g., %MyEnvVar%), and can contain a fallback value (e.g., %MyEnvVar?DefaultValue%).

addResourceAttributesToAttributes boolean false

Whether to add resource attributes to signal attributes.

applicationName string

Application name to use in telemetry information. By default, it's populated by io.Connect.

definitiveInstance boolean

Internal library property.

enabled boolean

Whether library is enabled. If disabled, API is still usable, but methods are no-ops.

errorlessMode boolean false

If true, the library will swallow all errors, instead of propagating them.

failOnInitError boolean

If failure to initialize library will throw upstream error.

finalExportGracePeriodMs number

Interval in milliseconds to wait for any remaining telemetry data to be published by any apps before proceeding with the platform shutdown.

finalExportTimeoutMs number

Interval in milliseconds to wait for any remaining telemetry data to be exported during shutdown of the platform. This is the maximum awaiting interval and the platform may shutdown before it expires if all telemetry data has already been published.

headers { [x: string]: string; } | (() => { [x: string]: string; })

Additional headers to send in HTTP requests, e.g. when using HTTP exporters.

logs LogsSettings
logSettingsOnStartup boolean true

If the library should log the settings used to initialize it.

metrics MetricsSettings
platformInstance boolean

Internal library property.

platformVersion string

If provided, this value will be added to the metrics and span attributes and to the span filtering context (see 'filters' in TracesSettings).

registerControlMethods boolean

Internal library property.

requestSettings boolean true

For Node applications: whether to attempt to request io.Insights settings from the platform when initializing;

serviceId string

If provided, this value will be added to the metrics and traces service.instance.id attribute, unless an OTEL service object (e.g. TraceProvider) has been provided to the library with a different setting.

serviceName string

If provided, this value will be added to the metrics and traces service.name attribute, unless an OTEL service object (e.g. TraceProvider) has been provided to the library with a different setting.

serviceVersion string

If provided, this value will be added to the metrics and traces service.version attribute, unless an OTEL service object (e.g. TraceProvider) has been provided to the library with a different setting. attribute.

suppressDoubleInitializationWarnings boolean false

Suppress double initialization warnings from the OTEL SDK.

traces TracesSettings
userId string

If provided, this value will be added to the metrics and traces user.id attribute, unless an OTEL service object (e.g. TraceProvider) has been provided to the library with a different setting.

useSSOAuth boolean false

If true, use io.Connect's SSO login information when making requests to the OTEL collector.

useSSOAuthRawToken boolean true

Used if io.Connect's SSO login information contains a token property. If true, the token property will be used as-is. If false, the token property may be prepended with the string "Bearer ", if it does not contain an Authorization type prefix.

SpanCreationOptionsobject

Properties

Property Type Default Required Description
addContextToTrace boolean

Whether the filtering context will be added as span attributes to the span. See 'Filter'.

Defaults to 'true'.

autoSetSuccessStatus boolean

Whether the span's status will be set to OK on completion, if it's still UNSET. See 'Filter'.

Defaults to 'false'.

canBeRoot boolean

Whether the span will be able to start a new trace. If false, it will only be able to be added to an existing trace.

Defaults to 'true'.

countMetric boolean

Whether the span will be counted in the insights_trace_count metric. See TracesSettings.countMetric.

Defaults to 'false'.

countMetricOnDisabledSpans boolean

Whether the span will be counted in the insights_trace_count metric if disabled. See TracesSettings.countMetric.

disableNesting boolean

Forces the span to create a new trace.

disablePropagation boolean

Whether the span will not inject its propagation info into data transfer objects for span nesting across system boundaries.

Defaults to 'false'.

durationMetric boolean

Whether the span will be counted in the insights_trace_duration metric. See TracesSettings.durationtMetric.

Defaults to 'false'.

durationMetricOnDisabledSpans boolean

Whether the span will be counted in the insights_trace_count metric if disabled. See TracesSettings.durationMetric.

enabled boolean

Whether the span will be created or will be a no-op. See 'Filter'.

Defaults to 'true'.

forceChildTracing boolean

If true, any child spans (including nested spans across sytem boundaries) will be forced to be traced, even if their span filter configuration is set to not enabled.

Defaults to 'false'.

getPropagationInfo PropagationInfoCallback
level "DEBUG" | "INFO" | "WARN" | "OFF" | "LOWEST" | "DIAGNOSTIC" | "HIGHEST"

Default span attribute verbosity level. See 'Filter'.

Defaults to 'INFO'.

log boolean

If true, enabled spans will also be published as log entries using the traceLogger passed to the builder instance when building the Traces module.

logOnDisabledSpans boolean

If true, disabled spans will also be published as log entries using the traceLogger passed to the builder instance when building the Traces module.

maxAttributeDepth number

How deep addData method should recurse into objects when adding attributes to spans.

Defaults to 3.

minDurationMs number

If specified, spans whose duration is lower than this will not be sampled.

otelSpanOptions SpanOptions

OTEL span options

overrideDefaultFilters boolean false

If true, this filter rule will be matched before any default filters provided by io.Connect. The default filters are usually meant to reduce verbosity by not tracing some internal operations by default, but you can use this property to force them to be traced. If false, default filters will be matched before this filtering rule.

resultMetric boolean

Whether the span will be counted in the insights_trace_result metric. See TracesSettings.resultMetric.

Defaults to 'false'.

resultMetricOnDisabledSpans boolean

Whether the span will be counted in the insights_trace_result metric if disabled. See TracesSettings.resultMetric.

sample number | boolean

Default sampling setting/probability. See 'SamplingSettings'.

Defaults to 'true'.

stopPropagationIfSpanIsDisabled boolean

If a tracing span is disabled by filter, setting this to "true" will stop the propagation of trace nesting info across it.

SpanFilterobject

Properties

Property Type Default Required Description
context { [key: string]: string | number | boolean; }

Specifies the filtering context values used for matching spans. Spans match only if all the values in this object match the context values returned by the context getter callback and the filteringContext config property.

Start strings with "#" for case-insensitive regex match.

source string

Specifies the source string used for matching spans. Spans match only if their source equals this value, or if their source starts with '.' (e.g. my.api.foo starts with my.api).

Start string with "#" for case-insensitive regex match.

SpanStatusobject

Properties

Property Type Default Required Description
code SpanStatusCode

The status code of this message.

message string

A developer-facing error message.

SystemCPUobject

Properties

Property Type Default Required Description
average number
current number
platform number

SystemMemoryobject

Properties

Property Type Default Required Description
platformTotal number
systemFree number
systemTotal number

TracesManagerobject

Description

Traces API.

Properties

Property Type Default Required Description
clickstreamMarker MarkerSpanCallback

Optional callback function to programmatically create marker spans in the Clickstream trace. Allows applications to mark specific user interaction events beyond automatic click tracking (e.g., custom UI interactions, gesture events, programmatic actions).

The callback receives:

  • source: A descriptive name for the marker (e.g., "user-swiped-left", "custom-button-action")
  • data: Optional span data organized by verbosity level for detailed context

Returns either PropagationInfo to link the marker span to other traces, or void.

Works in conjunction with the clickstream setting to track detailed user interaction patterns.

currentTracingState TracingState
settings TSettings
started boolean
startupTraceFinished () => void

Called by the application to signify that its startup has completed and no further spans should be nested under the startup trace.

userJourneyMarker MarkerSpanCallback

Optional callback function to programmatically create marker spans in the User Journey trace. Allows applications to mark significant points in a user's journey through the application (e.g., navigation events, key user actions, milestone completions).

The callback receives:

  • source: A descriptive name for the marker (e.g., "user-navigated-to-dashboard")
  • data: Optional span data organized by verbosity level for detailed context

Returns either PropagationInfo to link the marker span to other traces, or void.

Works in conjunction with the userJourney setting to track the user's entire session flow.

Methods

  • setFilterConfig
  • setUserJourneyMarker
  • start
  • stop
  • waitForFinalExport
  • withSequenceSpan
  • withSequenceSpan
  • withSequenceSpan
  • withSequenceSpan
  • withSequenceSpanEx
  • withSequenceSpanEx
  • withSequenceSpanEx
  • withSequenceSpanEx
  • withSpan
  • withSpan
  • withSpan
  • withSpan

setFilterConfigmethod

Signature

(filters: SpanFilter[]) => void

Parameters

Name Type Required Description
filters SpanFilter[]

setUserJourneyMarkermethod

Signature

(userJourneyMarker: MarkerSpanCallback) => void

Parameters

Name Type Required Description
userJourneyMarker MarkerSpanCallback

startmethod

Signature

() => Promise<void>

stopmethod

Signature

() => Promise<void>

waitForFinalExportmethod

Signature

(timeoutMs?: number) => Promise<void>

Parameters

Name Type Required Description
timeoutMs number

withSequenceSpanmethod

Signature

<T>(source: string, callback: WithSpanCallback<T>) => Promise<T>

Parameters

Name Type Required Description
source string
callback WithSpanCallback<T>

withSequenceSpanmethod

Signature

<T>(source: string, filteringContext: FilteringContext, callback: WithSpanCallback<T>) => Promise<T>

Parameters

Name Type Required Description
source string
filteringContext FilteringContext
callback WithSpanCallback<T>

withSequenceSpanmethod

Signature

<T>(source: string, filteringContext: FilteringContext, options: WithSpanOptions, callback: WithSpanCallback<T>) => Promise<T>

Parameters

Name Type Required Description
source string
filteringContext FilteringContext
options WithSpanOptions
callback WithSpanCallback<T>

withSequenceSpanmethod

Signature

<T>(source: string, filteringContextOrCallback: FilteringContext | WithSpanCallback<T>, optionsOrCallback?: WithSpanOptions | WithSpanCallback<T>, callback?: WithSpanCallback<T>) => Promise<T>

Parameters

Name Type Required Description
source string
filteringContextOrCallback FilteringContext | WithSpanCallback<T>
optionsOrCallback WithSpanOptions | WithSpanCallback<T>
callback WithSpanCallback<T>

withSequenceSpanExmethod

Signature

<T>(source: string, traceName: string, callback: WithSpanCallback<T>) => Promise<T>

Parameters

Name Type Required Description
source string
traceName string
callback WithSpanCallback<T>

withSequenceSpanExmethod

Signature

<T>(source: string, traceName: string, filteringContext: FilteringContext, callback: WithSpanCallback<T>) => Promise<T>

Parameters

Name Type Required Description
source string
traceName string
filteringContext FilteringContext
callback WithSpanCallback<T>

withSequenceSpanExmethod

Signature

<T>(source: string, traceName: string, filteringContext: FilteringContext, options: WithSpanOptions, callback: WithSpanCallback<T>) => Promise<T>

Parameters

Name Type Required Description
source string
traceName string
filteringContext FilteringContext
options WithSpanOptions
callback WithSpanCallback<T>

withSequenceSpanExmethod

Signature

<T>(source: string, traceName: string, filteringContextOrCallback: FilteringContext | WithSpanCallback<T>, optionsOrCallback?: WithSpanOptions | WithSpanCallback<T>, callback?: WithSpanCallback<T>) => Promise<T>

Parameters

Name Type Required Description
source string
traceName string
filteringContextOrCallback FilteringContext | WithSpanCallback<T>
optionsOrCallback WithSpanOptions | WithSpanCallback<T>
callback WithSpanCallback<T>

withSpanmethod

Signature

<T>(source: string, callback: WithSpanCallback<T>) => T

Parameters

Name Type Required Description
source string
callback WithSpanCallback<T>

withSpanmethod

Signature

<T>(source: string, filteringContext: FilteringContext, callback: WithSpanCallback<T>) => T

Parameters

Name Type Required Description
source string
filteringContext FilteringContext
callback WithSpanCallback<T>

withSpanmethod

Signature

<T>(source: string, filteringContext: FilteringContext, propagationInfo: PropagationInfo | PropagationInfoCarrier, callback: WithSpanCallback<T>) => T

Parameters

Name Type Required Description
source string
filteringContext FilteringContext
propagationInfo PropagationInfo | PropagationInfoCarrier
callback WithSpanCallback<T>

withSpanmethod

Signature

<T>(source: string, filteringContext: FilteringContext, propagationInfo: PropagationInfo | PropagationInfoCarrier, options: WithSpanOptions, callback: WithSpanCallback<T>) => T

Parameters

Name Type Required Description
source string
filteringContext FilteringContext
propagationInfo PropagationInfo | PropagationInfoCarrier
options WithSpanOptions
callback WithSpanCallback<T>

TracesManagerBuilderobject

Methods

  • build
  • withContextManager
  • withLogger
  • withMetrics
  • withPropagationInfoStorage
  • withSettings
  • withTraceLogger

buildmethod

Signature

() => TracesManager

withContextManagermethod

Signature

(contextManager: ContextManager) => this

Parameters

Name Type Required Description
contextManager ContextManager

withLoggermethod

Signature

(logger: Logger) => this

Parameters

Name Type Required Description
logger Logger

withMetricsmethod

Signature

(metrics: MetricsManager) => this

Parameters

Name Type Required Description
metrics MetricsManager

withPropagationInfoStoragemethod

Signature

(store: (source: string, pi: PropagationInfo) => Promise<void>, read: (source: string) => Promise<PropagationInfo>) => this

Parameters

Name Type Required Description
store (source: string, pi: PropagationInfo) => Promise<void>
read (source: string) => Promise<PropagationInfo>

withSettingsmethod

Signature

(settings: TracesSettings) => this

Parameters

Name Type Required Description
settings TracesSettings

withTraceLoggermethod

Signature

(traceLogger: Logger) => this

Parameters

Name Type Required Description
traceLogger Logger

TracesSettingsobject

Properties

Property Type Default Required Description
additionalAttributes { [x: string]: unknown; } | (() => { [x: string]: unknown; })

Additional span attributes to publish as part of each span, specified as key/value pairs. You can use environment variables as values. Environment variables must start and end with a percent sign (e.g., %MyEnvVar%), and can contain a fallback value (e.g., %MyEnvVar?literalDefaultValue%).

additionalResourceAttributes { [x: string]: unknown; } | (() => { [x: string]: unknown; })

Additional attributes to publish as part of the OTEL resource definition, specified as key/value pairs. You can use environment variables as values. Environment variables must start and end with a percent sign (e.g., %MyEnvVar%), and can contain a fallback value (e.g., %MyEnvVar?literalDefaultValue%).

addResourceAttributesToAttributes boolean false

Whether to add resource attributes to span attributes.

autoInstrumentations AutoInstrumentationOptions

Configuration for automatic instrumentation of common browser operations. Enables automatic tracing of document load, user interactions, fetch requests, and XHR calls.

clickstream boolean | ClickstreamTraceConfig | "sibling" | "nested" true

Whether the clickstream trace will be enabled. false - clickstream trace is disabled. true - same as sibling nested - clickstream trace is enabled and each subsequent span is a child span of the previous one. sibling - clickstream trace is enabled and each subsequent span is a child of the same initial span.

closeTrace boolean false

If true, the application will create a span with the name interopio.api.application.close when it's being closed. This functionality requires close handlers to be enabled in the application configuration.

compression CompressionAlgorithm

Compression algorithm to use when exporting trace.

concurrencyLimit number

Maximum number of concurrent trace export requests.

console boolean

If an OTEL TraceProvider isn't provided to the library, it will initialize its own.

If 'console' is 'true', TracerProvider will have a ConsoleTraceExporter.

contextManager (tracesSettings: TracesSettings, settings: Settings) => ContextManager
countMetric string

Name of span hit counter metric, set to null to disable.

Defaults to 'insights_trace_count'.

defaultFilters SpanFilter[]

This property is for internal use only.

defaults SpanCreationOptions

Default settings if appropriate entries aren't found in 'filters' and 'sampling' collections.

durationMetric string

Name of span duration histogram metric, set to null to disable.

Defaults to 'insights_trace_duration'.

enabled boolean false

Whether tracing functionality is enabled. If disabled, API is still usable, but methods are no-ops.

exporterSettings OTLPExporterNodeConfigBase

If an OTEL TraceProvider isn't provided to the library, it will initialize its own.

If 'url' is specified, TracerProvider will have an OTLPTraceExporter with 'url' as detination URL and 'exporterSettings' as additional config.

filters SpanFilter[]

Array of filter entries used to determine whether a particular operation will create a tracing span, and what verbosity level will apply to attributes added to that span.

If no matching filter entry is found, the settings from 'default' are used.

headers { [x: string]: string; } | (() => { [x: string]: string; })

Additional headers to send in HTTP requests, e.g. when using HTTP exporters.

hybridContextMode boolean false

If true, the library will use both the ContextManager provided by the OTEL SDK and the Traces.currentTracingState property to resolve the current context. See the documentation of the useOTELContextManager property for more details.

instrumentAppLoad boolean true

If true, io.Insights will instrument and trace the application loading process automatically.

instrumentDocumentLoad boolean true

If true, io.Insights will instrument and trace the steps of the document load and initialization process automatically

instrumentRequests boolean true

If true, io.Insights will instrument and trace XMLHttpRequest and fetch() requests automatically.

keepAlive boolean true

Whether to keep the connection alive when sending traces.

otlpExporterConfig OTLPExporterNodeConfigBase
parentNameLimit number

Maximum length for parent operation names in span hierarchies.

processorSettings BatchSpanProcessorBrowserConfig

Configuration for the batch span processor buffer settings.

propagator (tracesSettings: TracesSettings, settings: Settings) => TextMapPropagator<any>
providerRegistrationSettings (tracesSettings: TracesSettings, settings: Settings) => { propagator?: TextMapPropagator<any>; contextManager?: ContextManager; }
publishInterval number

Interval in milliseconds between trace export batches.

resultMetric string

Name of span result counter metric, set to null to disable.

Defaults to 'insights_trace_result'.

rootPropagationInfo PropagationInfo
sampler (defaultSampler: Sampler, tracesSettings: TracesSettings, settings: Settings) => Sampler
sampling SamplingSettings[]

Array of sampling setting entries used to determine whether a span will be sampled.

If no matching sampling setting entry is found, the settings from 'defaults' are used.

spanExporters (exporterSettings: OTLPExporterNodeConfigBase, tracesSettings: TracesSettings, settings: Settings) => SpanExporter[]
spanProcessors (processorSettings: BatchSpanProcessorBrowserConfig, exporterSettings: OTLPExporterNodeConfigBase, tracesSettings: TracesSettings, settings: Settings) => SpanProcessor[]
startupParentSpanTimeoutMs number

How long after application startup will any traced operations automatically be nested under the application startup trace.

timeoutMillis number 10000ms.

Maximum time the OTLP exporter will wait for each batch export.

tracerProvider (tracerProviderSettings: TracerConfig, tracesSettings: TracesSettings, settings: Settings) => TracerProvider
tracerProviderSettings TracerConfig

OTEL TracerConfig - provides an interface for configuring a Basic Tracer.

url string

If an OTEL TraceProvider isn't provided to the library, it will initialize its own.

If 'url' is specified, TracerProvider will have an OTLPTraceExporter using this destination URL.

useDefaultFilters boolean true.

If true, use a predefined list of filters for well-known platform traces.

useOTELContextManager boolean false

If true, the library will use the ContextManager provided by the active OTEL SDK to manage and derive propagation information to ensure spans created across asynchronous operations are properly nested.

Otherwise, use Traces.currentTracingState to set and retrieve propagation info across asynchronous operations manually.

See https://opentelemetry.io/docs/languages/js/propagation/ and https://opentelemetry.io/docs/languages/js/context/#context-manager for more information.

userJourney boolean | "sibling" | "nested" | UserJourneyTraceConfig true

Whether the user journey trace will be enabled. false - User Journey trace is disabled. nested - User Journey trace is enabled and each subsequent span is a child span of the previous one. sibling - User Journey trace is enabled and each subsequent span is a child of the same initial span.

useSSOAuth boolean false

If true, use io.Connect's SSO login information when making requests to the OTEL collector.

useSSOAuthRawToken boolean true

Used if io.Connect's SSO login information contains a token property. If true, the token property will be used as-is. If false, the token property may be prepended with the string "Bearer ", if it does not contain an Authorization type prefix.

TracingStateobject

Properties

Property Type Default Required Description
addEvent (name: string, attributesOrStartTime?: number | Date | Attributes | HrTime, startTime?: TimeInput) => this
context Context
enabled boolean

If false, this is a placeholder object, and all its methods are no-ops, with the possible exception of getPropagationInfo() and injectPropagationInfo()

endTime Date
getPropagationInfo () => PropagationInfo

Gets the propagation info for the current span (see https://www.w3.org/TR/trace-context/#tracestate-field)

id string
injectPropagationInfo (carrier: PropagationInfoCarrier & object) => void

Sets a hidden property in the object that can be used to restore propagation information after serialization and deserialization (see withSpan 'propagationInfo' argument and Traces.extractPropagationInfo() method).

isRecording () => boolean
level "DEBUG" | "INFO" | "WARN" | "OFF" | "LOWEST" | "DIAGNOSTIC" | "HIGHEST"
recordException (exception: Exception, time?: TimeInput) => void
source string
span Span
spanContext (() => SpanContext) | (() => undefined)
startTime Date
status SpanStatus
traceId string
updateName (name: string) => this

Methods

  • addData
  • end
  • endSpan

addDatamethod

Signature

(level: SpanVerbosity | "DEBUG" | "INFO" | "WARN" | "OFF" | "LOWEST" | "DIAGNOSTIC" | "HIGHEST", data: object | (() => object)) => void

Parameters

Name Type Required Description
level SpanVerbosity | "DEBUG" | "INFO" | "WARN" | "OFF" | "LOWEST" | "DIAGNOSTIC" | "HIGHEST"
data object | (() => object)

endmethod

Signature

() => void

endSpanmethod

Signature

(endTime?: Date, allowDoubleEnd?: boolean) => Promise<void>

Parameters

Name Type Required Description
endTime Date
allowDoubleEnd boolean

UserInteractionInstrumentationConfigobject

Description

Configuration for automatic instrumentation of user interactions. Extends the base OpenTelemetry user interaction instrumentation with additional throttling options.

Properties

Property Type Default Required Description
eventNames ("fullscreenchange" | "fullscreenerror" | "abort" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "blur" | "cancel" | "canplay" | "canplaythrough" | "change" | "click" | "close" | "contextmenu" | "cuechange" | "dblclick" | "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "ended" | "error" | "focus" | "focusin" | "focusout" | "gotpointercapture" | "input" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadstart" | "lostpointercapture" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "progress" | "ratechange" | "reset" | "resize" | "scroll" | "securitypolicyviolation" | "seeked" | "seeking" | "select" | "selectionchange" | "selectstart" | "stalled" | "submit" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "waiting" | "wheel" | "copy" | "cut" | "paste")[]

List of events to instrument (like 'mousedown', 'touchend', 'play' etc). By default only 'click' event is instrumented.

shouldPreventSpanCreation ShouldPreventSpanCreation

Callback function called each time new span is being created. Return true to prevent span recording. You can also use this handler to enhance created span with extra attributes.

throttleIntervalMs number

Minimum interval in milliseconds between capturing consecutive user interaction events. Used to throttle high-frequency interactions and reduce span volume.

UserJourneyTraceConfigobject

Description

Configuration for User Journey trace behavior. Controls how significant User Journey milestones are tracked throughout the platform session.

Properties

Property Type Default Required Description
chainLength number 0

If specified, this number of previously focused applications and their focus times will be added as attributes to the User Journey span. This is useful for some kinds of querying.

descriptiveName boolean true

If true, the User Journey trace spans will be named interopio.desktop.userJourney... If false, the User Journey trace spans will be named interopio.api.userJourney.

enabled boolean

Whether the User Journey trace is enabled.

structure "sibling" | "nested" "sibling"

If sibling, all spans in the User Journey trace will be nested under the same root span. This is useful when working with visualization interfaces that do not handle arbitrarily nested spans.

If nested, every span in the User Journey trace will be nested under the previous span. This is useful for some kinds of querying.

WithSpanDecoratorOptionsobject

Properties

Property Type Default Required Description
argMapping string[] | { [x: string]: string; } | ((...args: any[]) => any)
defaultFilters SpanFilter[]
structure "sibling" | "nested"
thisMapping { [x: string]: string; } | ((that: any) => any)

WithSpanOptionsobject

Properties

Property Type Default Required Description
defaultFilters SpanFilter[]
structure "sibling" | "nested"

WorkspaceActionHandlerArgsobject

Properties

Property Type Default Required Description
layout string

WorkspaceAppsStartedHandlerArgsobject

Properties

Property Type Default Required Description
complexLoad boolean

Indicates whether the workspace loading involved a complex operation where existing apps are added to a new workspace. This attribute can be used to filter out metrics.

endTime Date
includesFrameCreation boolean

Indicates whether the metric includes the time to create and load the Workspace Frame App when the workspace is opened in a new frame.

startTime Date

WorkspaceLoadedHandlerArgsobject

Properties

Property Type Default Required Description
complexLoad boolean
endTime Date
includesFrameCreation boolean
layout string
startTime Date

WorkspaceRestoredHandlerArgsobject

Properties

Property Type Default Required Description
complexLoad boolean

Indicates whether the workspace loading involved a complex operation where existing apps are added to a new workspace. This attribute can be used to filter out metrics.

endTime Date
includesFrameCreation boolean

Indicates whether the metric includes the time to create and load the Workspace Frame App when the workspace is opened in a new frame.

layout string
startTime Date

WorkspaceSavedHandlerArgsobject

Properties

Property Type Default Required Description
layout string
oldLayout string

WorkspaceStartupHandlerArgsobject

Properties

Property Type Default Required Description
complexLoad boolean

Indicates whether the workspace loading involved a complex operation where existing apps are added to a new workspace. This attribute can be used to filter out metrics.

includesFrameCreation boolean

Indicates whether the metric includes the time to create and load the Workspace Frame App when the workspace is opened in a new frame.

WorkspaceTimedActionHandlerArgsobject

Properties

Property Type Default Required Description
complexLoad boolean

Indicates whether the workspace loading involved a complex operation where existing apps are added to a new workspace. This attribute can be used to filter out metrics.

endTime Date
includesFrameCreation boolean

Indicates whether the metric includes the time to create and load the Workspace Frame App when the workspace is opened in a new frame.

layout string
startTime Date

LoggerLogLevelenumeration

Description

  • NONE
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • VERBOSE
  • ALL

SpanStatusCodeenumeration

Description

  • UNSET

    The default status.

  • OK

    The operation has been validated by an Application developer or Operator to have completed successfully.

  • ERROR

    The operation contains an error.

SpanVerbosityenumeration

Description

  • OFF
  • LOWEST
  • DIAGNOSTIC
  • DEBUG
  • INFO
  • WARN
  • HIGHEST

InstanceActionHandlerfunction

Signature

(callback: (args: InstanceActionHandlerArgs) => void) => Unsubscribe

Parameters

Name Type Required Description
callback (args: InstanceActionHandlerArgs) => void

InstanceCrashHandlerfunction

Signature

(callback: (args: InstanceCrashHandlerArgs) => void) => Unsubscribe

Parameters

Name Type Required Description
callback (args: InstanceCrashHandlerArgs) => void

InstanceErrorHandlerfunction

Signature

(callback: (args: InstanceErrorHandlerArgs) => void) => Unsubscribe

Parameters

Name Type Required Description
callback (args: InstanceErrorHandlerArgs) => void

InstanceFocusedHandlerfunction

Signature

(callback: (args: InstanceFocusedHandlerArgs) => void) => Unsubscribe

Parameters

Name Type Required Description
callback (args: InstanceFocusedHandlerArgs) => void

InstanceReadyHandlerfunction

Signature

(callback: (args: InstanceReadyHandlerArgs) => void) => Unsubscribe

Parameters

Name Type Required Description
callback (args: InstanceReadyHandlerArgs) => void

LayoutRestoredHandlerfunction

Signature

(callback: (args: LayoutRestoredHandlerArgs) => void) => Unsubscribe

Parameters

Name Type Required Description
callback (args: LayoutRestoredHandlerArgs) => void

MarkerSpanCallbackfunction

Signature

(source: string, data?: { [x: number]: any; }) => void | Promise<PropagationInfo>

Description

Callback function type for creating marker spans in User Journey or Clickstream traces.

Parameters

Name Type Required Description
source string
  • Descriptive name for the marker span (e.g., "checkout-completed", "navigation-event"). If not provided, no new span will be created, and the data will simply be added to the current user journey or clickstream span.
data { [x: number]: any; }
  • Optional span data organized by verbosity level, allowing different detail levels for different environments

MetricsMeterProviderCreateFuncfunction

Signature

() => { meterProvider: MetricsMeterProvider; metricReaders: MetricReader[]; }

MetricTypeenumeration

Description

  • "app_count"
  • "app_cpu"
  • "app_crash"
  • "app_duration"
  • "app_duration_soft"
  • "app_error"
  • "app_memory"
  • "app_started"
  • "app_startup"
  • "app_stopped"
  • "layout_startup"
  • "workspace_count"
  • "workspace_selected"
  • "workspace_started"
  • "workspace_stopped"
  • "workspace_startup_legacy"
  • "workspace_startup"
  • "workspace_startup_frame"
  • "workspace_startup_frame_init"
  • "workspace_startup_frame_page_load"
  • "workspace_startup_frame_workspace_render"
  • "workspace_startup_component"
  • "workspace_startup_apps"
  • "platform_error"
  • "platform_startup"
  • "system_cpu"
  • "system_memory"
  • "custom_gauge"
  • "custom_observable_gauge"
  • "custom_observable_counter"
  • "custom_observable_up_down_counter"
  • "custom_counter"
  • "custom_histogram"
  • "custom_up_down_counter"
  • "null"

PlatformErrorHandlerfunction

Signature

(callback: (args: PlatformErrorHandlerArgs) => void) => Unsubscribe

Parameters

Name Type Required Description
callback (args: PlatformErrorHandlerArgs) => void

PlatformStartedHandlerfunction

Signature

(callback: (args: PlatformStartedHandlerArgs) => void) => Unsubscribe

Parameters

Name Type Required Description
callback (args: PlatformStartedHandlerArgs) => void

PropagationInfoCallbackfunction

Signature

(source: string, fullFilteringContext: FilteringContext) => PropagationInfo

Parameters

Name Type Required Description
source string
fullFilteringContext FilteringContext

Unsubscribefunction

Signature

() => void

WithSpanCallbackfunction

Signature

(tracingState: TracingState) => T

Parameters

Name Type Required Description
tracingState TracingState

WorkspaceGenericActionHandlerfunction

Signature

(callback: (args: T) => void) => Unsubscribe

Parameters

Name Type Required Description
callback (args: T) => void
  • Home
  • Privacy policy
  • Contact Us
  • interop.io
  • Developer Community
  • Developer Newsletter
  • Overview
  • API
  • APIBuilder
  • AppCPU
  • AppMemory
  • AttributeData
  • AutoInstrumentationOptions
  • ClickstreamTraceConfig
  • InstanceActionHandlerArgs
  • InstanceCrashHandlerArgs
  • InstanceErrorHandlerArgs
  • InstanceFocusedHandlerArgs
  • InstanceReadyHandlerArgs
  • LayoutRestoredHandlerArgs
  • Log4JSToOTELAppenderConfig
  • LogFilter
  • Logger
  • LogOptions
  • LogsManager
  • LogsManagerBuilder
  • LogsSettings
  • Manager
  • Metric
  • MetricAttributeSettings
  • MetricDefaultFilter
  • MetricFilter
  • MetricPublishingSettings
  • MetricsDependencyContainer
  • MetricSettings
  • MetricsManager
  • MetricsManagerBuilder
  • MetricsMeterProvider
  • MetricsSettings
  • PerformanceProvider
  • PlatformErrorHandlerArgs
  • PlatformStartedHandlerArgs
  • PropagationInfo
  • PropagationInfoCarrier
  • SamplingSettings
  • Settings
  • SpanCreationOptions
  • SpanFilter
  • SpanStatus
  • SystemCPU
  • SystemMemory
  • TracesManager
  • TracesManagerBuilder
  • TracesSettings
  • TracingState
  • UserInteractionInstrumentationConfig
  • UserJourneyTraceConfig
  • WithSpanDecoratorOptions
  • WithSpanOptions
  • WorkspaceActionHandlerArgs
  • WorkspaceAppsStartedHandlerArgs
  • WorkspaceLoadedHandlerArgs
  • WorkspaceRestoredHandlerArgs
  • WorkspaceSavedHandlerArgs
  • WorkspaceStartupHandlerArgs
  • WorkspaceTimedActionHandlerArgs
  • LoggerLogLevel
  • SpanStatusCode
  • SpanVerbosity
  • InstanceActionHandler
  • InstanceCrashHandler
  • InstanceErrorHandler
  • InstanceFocusedHandler
  • InstanceReadyHandler
  • LayoutRestoredHandler
  • MarkerSpanCallback
  • MetricsMeterProviderCreateFunc
  • MetricType
  • PlatformErrorHandler
  • PlatformStartedHandler
  • PropagationInfoCallback
  • Unsubscribe
  • WithSpanCallback
  • WorkspaceGenericActionHandler
Navigate
Go