@interopio/browser-platform 3.3.3 → 3.3.5-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/browser.platform.d.ts
CHANGED
|
@@ -81,6 +81,84 @@ export namespace IOConnectBrowserPlatform {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Configuration for publishing OpenTelemetry data and settings for the published data items.
|
|
86
|
+
*/
|
|
87
|
+
export namespace Otel {
|
|
88
|
+
/**
|
|
89
|
+
* Configuration for publishing OpenTelemetry data.
|
|
90
|
+
*/
|
|
91
|
+
export interface Config {
|
|
92
|
+
/**
|
|
93
|
+
* Settings for publishing OpenTelemetry metrics.
|
|
94
|
+
*/
|
|
95
|
+
metrics?: MetricsDefinition;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Settings for publishing OpenTelemetry metrics.
|
|
100
|
+
*/
|
|
101
|
+
export interface MetricsDefinition {
|
|
102
|
+
/**
|
|
103
|
+
* URL pointing to an OpenTelemetry metrics server.
|
|
104
|
+
*/
|
|
105
|
+
url: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Interval in milliseconds at which to publish the generated metrics.
|
|
109
|
+
* @default 30000
|
|
110
|
+
*/
|
|
111
|
+
publishInterval?: number;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Definitions of the OpenTelemetry metrics to publish.
|
|
115
|
+
*/
|
|
116
|
+
metrics?: MetricDefinition[];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Definition of an OpenTelemetry metric.
|
|
121
|
+
*/
|
|
122
|
+
export interface MetricDefinition {
|
|
123
|
+
/**
|
|
124
|
+
* If `true`, will enable publishing of the OpenTelemetry metric.
|
|
125
|
+
*/
|
|
126
|
+
enabled?: boolean;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Name for the OpenTelemetry metric. May be used in visualization tools.
|
|
130
|
+
*/
|
|
131
|
+
name?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Description for the OpenTelemetry metric.
|
|
135
|
+
*/
|
|
136
|
+
description?: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Specify explicit bucket boundaries for the OpenTelemetry SDK if the metric has been created by a `HistogramAggregator`.
|
|
140
|
+
*/
|
|
141
|
+
buckets?: number[];
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Type of the predefined OpenTelemetry metric.
|
|
145
|
+
*/
|
|
146
|
+
type:
|
|
147
|
+
"app_started" |
|
|
148
|
+
"app_stopped" |
|
|
149
|
+
"app_startup" |
|
|
150
|
+
"app_count" |
|
|
151
|
+
"app_duration" |
|
|
152
|
+
"app_error" |
|
|
153
|
+
"layout_startup" |
|
|
154
|
+
"workspace_startup" |
|
|
155
|
+
"workspace_stopped" |
|
|
156
|
+
"workspace_count" |
|
|
157
|
+
"platform_startup" |
|
|
158
|
+
"platform_error"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
84
162
|
export namespace ServiceWorker {
|
|
85
163
|
export interface Config {
|
|
86
164
|
url?: string;
|
|
@@ -217,7 +295,7 @@ export namespace IOConnectBrowserPlatform {
|
|
|
217
295
|
showDelayedIndicator?: boolean;
|
|
218
296
|
}
|
|
219
297
|
|
|
220
|
-
export interface IFrameSandboxConfig{
|
|
298
|
+
export interface IFrameSandboxConfig {
|
|
221
299
|
flags: string;
|
|
222
300
|
}
|
|
223
301
|
|
|
@@ -308,6 +386,7 @@ export namespace IOConnectBrowserPlatform {
|
|
|
308
386
|
user?: User.Config;
|
|
309
387
|
environment?: any;
|
|
310
388
|
applicationPreferences?: Prefs.Config;
|
|
389
|
+
otel?: Otel.Config;
|
|
311
390
|
browserFactory?: (config?: IOConnectBrowser.Config) => Promise<IOConnectBrowser.API>;
|
|
312
391
|
}
|
|
313
392
|
|