Skip to main content

LateInitSettingsinterface

In io.Connect Desktop, the settings of a late io.Insights initialization - see Settings.lateInit.

Properties (4)

Property Type Default Required Description
attributesCallCount⚓︎ number 1 x

How many times the T42.Otel.AddAttributes method is expected to be called before startup proceeds. For when more than one "pre-sso" autoStart application provides attributes: the wait (see attributesTimeoutMs) ends with that many invocations. The attributes of every invocation are merged as it arrives, a later one overriding an earlier one's; the ones that have arrived by the timeout are kept. Has no effect when attributesTimeoutMs is 0.

attributesTimeoutMs⚓︎ number 0 x

How long (in milliseconds) to wait for a "pre-sso" autoStart application to provide additional OTEL attributes by invoking the T42.Otel.AddAttributes Interop method (attributes and resourceAttributes, merged into additionalAttributes and additionalResourceAttributes) before io.Insights gets initialized. The method is registered before the "pre-sso" apps are started, the wait begins once the SSO authentication has completed, and the first invocation ends it - or as many as attributesCallCount says; attributes that arrive after the wait has ended are ignored. 0 (the default) disables the hand-over: the method is not registered and nothing is waited for. How long the startup waited is published as the otelAttributesWaitMs attribute of the startup span, and logged.

enabled⚓︎ boolean false x

Whether io.Insights is initialized late. Applies to an object that leaves it out as well.

initStage⚓︎ "post-sso" "post-sso" x

At what point of the startup io.Insights is initialized. "post-sso" - the only stage for now - means right after the SSO authentication has completed, which is after the "pre-sso" autoStart apps have been started and before the "post-sso" ones are.