@interopio/otel 0.1.1 → 0.1.2
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.
|
@@ -40,6 +40,9 @@ export declare class MetricsDependencyBuilder {
|
|
|
40
40
|
withPlatformStartedHandler(platformStartedHandler: IOInsights.PlatformStartedHandler): this;
|
|
41
41
|
withPlatformErrorHandler(platformErrorHandler: IOInsights.PlatformErrorHandler): this;
|
|
42
42
|
withPerfProvider(perfProvider: IOInsights.PerformanceProvider): this;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Use withWorkspaceStartupHandler
|
|
45
|
+
*/
|
|
43
46
|
withWorkspaceRestoredHandler(workspaceRestoredHandler: IOInsights.WorkspaceGenericActionHandler<IOInsights.WorkspaceRestoredHandlerArgs>): this;
|
|
44
47
|
withWorkspaceStartupHandler(workspaceStartupHandler: IOInsights.WorkspaceGenericActionHandler<IOInsights.WorkspaceStartupHandlerArgs>): this;
|
|
45
48
|
withWorkspaceFrameCreatedHandler(workspaceFrameCreatedHandler: IOInsights.WorkspaceGenericActionHandler<IOInsights.WorkspaceTimedActionHandlerArgs>): this;
|
|
@@ -117,6 +117,9 @@ class MetricsDependencyBuilder {
|
|
|
117
117
|
this.performanceProvider = perfProvider;
|
|
118
118
|
return this;
|
|
119
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Use withWorkspaceStartupHandler
|
|
122
|
+
*/
|
|
120
123
|
withWorkspaceRestoredHandler(workspaceRestoredHandler) {
|
|
121
124
|
this.workspaceRestoredHandler = workspaceRestoredHandler;
|
|
122
125
|
this.workspaceStartedHandler = () => () => { };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metricsDependencyBuilder.js","sourceRoot":"","sources":["../../src/metrics/metricsDependencyBuilder.ts"],"names":[],"mappings":";;;AACA,yDAA6D;AAC7D,MAAa,wBAAwB;IA0BjC;QACI,IAAI,CAAC,mBAAmB,GAAG,IAAI,0CAAuB,EA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,CAAC;QACrD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yBAAyB,CAAC,qBAAqG;QAClI,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2BAA2B,CAAC,uBAAwG;QACvI,IAAI,CAAC,wBAAwB,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC;QAC/C,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;QACvD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2BAA2B,CAAC,uBAAwG;QACvI,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;QACvD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,4BAA4B,CAAC,wBAAyG;QACzI,IAAI,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;QACzD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,0BAA0B,CAAC,sBAAyD;QACvF,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,wBAAwB,CAAC,oBAAqD;QACjF,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gBAAgB,CAAC,YAA4C;QAChE,IAAI,CAAC,mBAAmB,GAAG,YAAY,CAAC;QACxC,OAAO,IAAI,CAAC;IAChB,CAAC;
|
|
1
|
+
{"version":3,"file":"metricsDependencyBuilder.js","sourceRoot":"","sources":["../../src/metrics/metricsDependencyBuilder.ts"],"names":[],"mappings":";;;AACA,yDAA6D;AAC7D,MAAa,wBAAwB;IA0BjC;QACI,IAAI,CAAC,mBAAmB,GAAG,IAAI,0CAAuB,EAAE,CAAC;QACzD,IAAI,CAAC,sBAAsB,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,sBAAsB,GAAG,GAAG,EAA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AChJ,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;QAC3D,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,iCAAiC,CAAC,6BAAmH;QACxJ,IAAI,CAAC,6BAA6B,GAAG,6BAA6B,CAAC;QACnE,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,wCAAwC,CAAC,oCAA0H;QACtK,IAAI,CAAC,oCAAoC,GAAG,oCAAoC,CAAC;QACjF,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oCAAoC,CAAC,gCAAsH;QAC9J,IAAI,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;QACzE,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,+BAA+B,CAAC,2BAAiH;QACpJ,IAAI,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;QAC/D,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAxMD,4DAwMC"}
|
package/insights.d.ts
CHANGED
|
@@ -228,7 +228,12 @@ export namespace IOInsights {
|
|
|
228
228
|
* @default false
|
|
229
229
|
*/
|
|
230
230
|
enabled: boolean;
|
|
231
|
-
|
|
231
|
+
/**
|
|
232
|
+
* How deep the library should recurse into objects when adding
|
|
233
|
+
* labels to metrics.
|
|
234
|
+
*
|
|
235
|
+
* @default 5
|
|
236
|
+
*/
|
|
232
237
|
maxAttributeDepth?: number;
|
|
233
238
|
|
|
234
239
|
/**
|
|
@@ -244,27 +249,11 @@ export namespace IOInsights {
|
|
|
244
249
|
/**
|
|
245
250
|
* If `true`, workspace_startup will be published as the legacy histogram metric from
|
|
246
251
|
* the io.Insights beta releases.
|
|
247
|
-
*
|
|
252
|
+
*
|
|
248
253
|
* @default false
|
|
249
254
|
*/
|
|
250
255
|
useLegacyWorkspaceStartupMetric?: boolean;
|
|
251
256
|
|
|
252
|
-
// /**
|
|
253
|
-
// * If `true`, use io.Connect's SSO login information when making requests to the OTEL collector.
|
|
254
|
-
// *
|
|
255
|
-
// * @default false
|
|
256
|
-
// */
|
|
257
|
-
// useSSOAuth?: boolean;
|
|
258
|
-
|
|
259
|
-
// /**
|
|
260
|
-
// * Used if io.Connect's SSO login information contains a `token` property. If `true`,
|
|
261
|
-
// * the `token` property will be used as-is. If `false`, the `token` property may be
|
|
262
|
-
// * prepended with the string "Bearer ", if it does not contain an Authorization type prefix.
|
|
263
|
-
// *
|
|
264
|
-
// * @default true
|
|
265
|
-
// */
|
|
266
|
-
// useSSOAuthRawToken?: boolean;
|
|
267
|
-
|
|
268
257
|
/**
|
|
269
258
|
* Whether to enable automatic collection of platform-level metrics (CPU, memory, etc.).
|
|
270
259
|
*/
|
|
@@ -282,6 +271,8 @@ export namespace IOInsights {
|
|
|
282
271
|
|
|
283
272
|
/**
|
|
284
273
|
* Interval in milliseconds between metric export batches.
|
|
274
|
+
*
|
|
275
|
+
* @default 30_000
|
|
285
276
|
*/
|
|
286
277
|
publishInterval?: number;
|
|
287
278
|
|
|
@@ -359,9 +350,16 @@ export namespace IOInsights {
|
|
|
359
350
|
|
|
360
351
|
/**
|
|
361
352
|
* Whether to apply predefined default filters for platform metrics.
|
|
353
|
+
*
|
|
354
|
+
* @default true
|
|
362
355
|
*/
|
|
363
356
|
useDefaultFilters?: boolean;
|
|
364
357
|
|
|
358
|
+
/**
|
|
359
|
+
* This property is for internal use only.
|
|
360
|
+
*/
|
|
361
|
+
defaultFilters?: MetricFilter[];
|
|
362
|
+
|
|
365
363
|
/**
|
|
366
364
|
* Options to use when creating the PeriodicExportingMetricReader to use when exporting metrics.
|
|
367
365
|
*/
|
|
@@ -529,7 +527,11 @@ export namespace IOInsights {
|
|
|
529
527
|
* Metric filters allow controlling specific metric data points, e.g.
|
|
530
528
|
* whether a particular value of a specific metric will be published.
|
|
531
529
|
*/
|
|
532
|
-
export interface MetricDefaultFilter {
|
|
530
|
+
export interface MetricDefaultFilter extends MetricPublishingSettings {
|
|
531
|
+
/**
|
|
532
|
+
* Matches the name of the metric
|
|
533
|
+
*/
|
|
534
|
+
name?: string;
|
|
533
535
|
/**
|
|
534
536
|
* Matches the type of the metric.
|
|
535
537
|
*/
|
|
@@ -552,11 +554,8 @@ export namespace IOInsights {
|
|
|
552
554
|
/**
|
|
553
555
|
* Whether or not the value for the matching metric will be published.
|
|
554
556
|
*/
|
|
555
|
-
enabled
|
|
556
|
-
|
|
557
|
-
* Sampling probability.
|
|
558
|
-
*/
|
|
559
|
-
sample?: number | boolean;
|
|
557
|
+
enabled?: boolean;
|
|
558
|
+
|
|
560
559
|
/**
|
|
561
560
|
* If `true`, this filter rule will be matched before any default filters provided
|
|
562
561
|
* by io.Connect. The default filters are usually meant filter out non-representative
|
|
@@ -575,11 +574,11 @@ export namespace IOInsights {
|
|
|
575
574
|
/**
|
|
576
575
|
* The name of the matched metric.
|
|
577
576
|
*/
|
|
578
|
-
name
|
|
577
|
+
name?: string;
|
|
579
578
|
/**
|
|
580
579
|
* The type of the matched metric.
|
|
581
580
|
*/
|
|
582
|
-
type
|
|
581
|
+
type?: MetricType;
|
|
583
582
|
}
|
|
584
583
|
|
|
585
584
|
/**
|
|
@@ -1165,21 +1164,6 @@ export namespace IOInsights {
|
|
|
1165
1164
|
*/
|
|
1166
1165
|
rootPropagationInfo?: PropagationInfo;
|
|
1167
1166
|
|
|
1168
|
-
// /**
|
|
1169
|
-
// * If `true`, use io.Connect's SSO login information when making requests to the OTEL collector.
|
|
1170
|
-
// *
|
|
1171
|
-
// * @default false
|
|
1172
|
-
// */
|
|
1173
|
-
// useSSOAuth?: boolean;
|
|
1174
|
-
// /**
|
|
1175
|
-
// * Used if io.Connect's SSO login information contains a `token` property. If `true`,
|
|
1176
|
-
// * the `token` property will be used as-is. If `false`, the `token` property may be
|
|
1177
|
-
// * prepended with the string "Bearer ", if it does not contain an Authorization type prefix.
|
|
1178
|
-
// *
|
|
1179
|
-
// * @default true
|
|
1180
|
-
// */
|
|
1181
|
-
// useSSOAuthRawToken?: boolean;
|
|
1182
|
-
|
|
1183
1167
|
/**
|
|
1184
1168
|
* Name of span hit counter metric, set to null to disable.
|
|
1185
1169
|
*
|
|
@@ -1338,6 +1322,8 @@ export namespace IOInsights {
|
|
|
1338
1322
|
/**
|
|
1339
1323
|
* How long after application startup will any traced operations
|
|
1340
1324
|
* automatically be nested under the application startup trace.
|
|
1325
|
+
*
|
|
1326
|
+
* @default 3000
|
|
1341
1327
|
*/
|
|
1342
1328
|
startupParentSpanTimeoutMs?: number;
|
|
1343
1329
|
|
|
@@ -1531,6 +1517,8 @@ export namespace IOInsights {
|
|
|
1531
1517
|
/**
|
|
1532
1518
|
* If a tracing span is disabled by filter, setting this to "true" will stop the propagation
|
|
1533
1519
|
* of trace nesting info across it.
|
|
1520
|
+
*
|
|
1521
|
+
* @default false
|
|
1534
1522
|
*/
|
|
1535
1523
|
stopPropagationIfSpanIsDisabled?: boolean;
|
|
1536
1524
|
/**
|
|
@@ -1574,12 +1562,16 @@ export namespace IOInsights {
|
|
|
1574
1562
|
/**
|
|
1575
1563
|
* If true, enabled spans will also be published as log entries using the `traceLogger` passed to the
|
|
1576
1564
|
* builder instance when building the Traces module.
|
|
1565
|
+
*
|
|
1566
|
+
* @default false
|
|
1577
1567
|
*/
|
|
1578
1568
|
log?: boolean;
|
|
1579
1569
|
|
|
1580
1570
|
/**
|
|
1581
1571
|
* If true, disabled spans will also be published as log entries using the `traceLogger` passed to the
|
|
1582
1572
|
* builder instance when building the Traces module.
|
|
1573
|
+
*
|
|
1574
|
+
* @default false
|
|
1583
1575
|
*/
|
|
1584
1576
|
logOnDisabledSpans?: boolean;
|
|
1585
1577
|
|
|
@@ -1591,6 +1583,8 @@ export namespace IOInsights {
|
|
|
1591
1583
|
countMetric?: boolean;
|
|
1592
1584
|
/**
|
|
1593
1585
|
* Whether the span will be counted in the insights_trace_count metric if disabled. See TracesSettings.countMetric.
|
|
1586
|
+
*
|
|
1587
|
+
* @default false
|
|
1594
1588
|
*/
|
|
1595
1589
|
countMetricOnDisabledSpans?: boolean;
|
|
1596
1590
|
/**
|
|
@@ -1601,6 +1595,8 @@ export namespace IOInsights {
|
|
|
1601
1595
|
resultMetric?: boolean;
|
|
1602
1596
|
/**
|
|
1603
1597
|
* Whether the span will be counted in the insights_trace_result metric if disabled. See TracesSettings.resultMetric.
|
|
1598
|
+
*
|
|
1599
|
+
* @default false
|
|
1604
1600
|
*/
|
|
1605
1601
|
resultMetricOnDisabledSpans?: boolean;
|
|
1606
1602
|
/**
|
|
@@ -1611,6 +1607,8 @@ export namespace IOInsights {
|
|
|
1611
1607
|
durationMetric?: boolean;
|
|
1612
1608
|
/**
|
|
1613
1609
|
* Whether the span will be counted in the insights_trace_count metric if disabled. See TracesSettings.durationMetric.
|
|
1610
|
+
*
|
|
1611
|
+
* @default false
|
|
1614
1612
|
*/
|
|
1615
1613
|
durationMetricOnDisabledSpans?: boolean;
|
|
1616
1614
|
/**
|
|
@@ -1624,7 +1622,7 @@ export namespace IOInsights {
|
|
|
1624
1622
|
* How deep addData method should recurse into objects when adding
|
|
1625
1623
|
* attributes to spans.
|
|
1626
1624
|
*
|
|
1627
|
-
*
|
|
1625
|
+
* @default 5
|
|
1628
1626
|
*/
|
|
1629
1627
|
maxAttributeDepth?: number;
|
|
1630
1628
|
/**
|
|
@@ -1637,6 +1635,8 @@ export namespace IOInsights {
|
|
|
1637
1635
|
forceChildTracing?: boolean;
|
|
1638
1636
|
/**
|
|
1639
1637
|
* If specified, spans whose duration is lower than this will not be sampled.
|
|
1638
|
+
*
|
|
1639
|
+
* @default 0
|
|
1640
1640
|
*/
|
|
1641
1641
|
minDurationMs?: number;
|
|
1642
1642
|
|
|
@@ -1860,20 +1860,6 @@ export namespace IOInsights {
|
|
|
1860
1860
|
* @default false
|
|
1861
1861
|
*/
|
|
1862
1862
|
enabled: boolean;
|
|
1863
|
-
// /**
|
|
1864
|
-
// * If `true`, use io.Connect's SSO login information when making requests to the OTEL collector.
|
|
1865
|
-
// *
|
|
1866
|
-
// * @default false
|
|
1867
|
-
// */
|
|
1868
|
-
// useSSOAuth?: boolean;
|
|
1869
|
-
// /**
|
|
1870
|
-
// * Used if io.Connect's SSO login information contains a `token` property. If `true`,
|
|
1871
|
-
// * the `token` property will be used as-is. If `false`, the `token` property may be
|
|
1872
|
-
// * prepended with the string "Bearer ", if it does not contain an Authorization type prefix.
|
|
1873
|
-
// *
|
|
1874
|
-
// * @default true
|
|
1875
|
-
// */
|
|
1876
|
-
// useSSOAuthRawToken?: boolean;
|
|
1877
1863
|
|
|
1878
1864
|
/**
|
|
1879
1865
|
* OTLP logs exporter endpoint URL.
|
|
@@ -1948,7 +1934,10 @@ export namespace IOInsights {
|
|
|
1948
1934
|
*/
|
|
1949
1935
|
useDefaultFilters?: boolean;
|
|
1950
1936
|
/**
|
|
1951
|
-
*
|
|
1937
|
+
* How deep the library should recurse into objects when adding
|
|
1938
|
+
* labels to logs.
|
|
1939
|
+
*
|
|
1940
|
+
* @default 5
|
|
1952
1941
|
*/
|
|
1953
1942
|
maxAttributeDepth?: number;
|
|
1954
1943
|
/**
|
|
@@ -2017,6 +2006,8 @@ export namespace IOInsights {
|
|
|
2017
2006
|
hideRegex?: string;
|
|
2018
2007
|
/**
|
|
2019
2008
|
* If `false`, the log entry will not be published.
|
|
2009
|
+
*
|
|
2010
|
+
* @default true
|
|
2020
2011
|
*/
|
|
2021
2012
|
enabled?: boolean;
|
|
2022
2013
|
}
|
|
@@ -2138,20 +2129,28 @@ export namespace IOInsights {
|
|
|
2138
2129
|
*/
|
|
2139
2130
|
applicationName?: string;
|
|
2140
2131
|
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2132
|
+
/**
|
|
2133
|
+
* If `true`, use io.Connect's SSO login information when making requests to the OTEL collector.
|
|
2134
|
+
*
|
|
2135
|
+
* @default false
|
|
2136
|
+
*/
|
|
2137
|
+
useSSOAuth?: boolean;
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* If `true`, send the entire SSO authorization information to the backend in the `auth` header.
|
|
2141
|
+
*
|
|
2142
|
+
* @default false
|
|
2143
|
+
*/
|
|
2144
|
+
useSSOAuthHeader?: boolean;
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* Used if io.Connect's SSO login information contains a `token` property. If `true`,
|
|
2148
|
+
* the `token` property will be used as-is. If `false`, the `token` property may be
|
|
2149
|
+
* prepended with the string "Bearer ", if it does not contain an Authorization type prefix.
|
|
2150
|
+
*
|
|
2151
|
+
* @default true
|
|
2152
|
+
*/
|
|
2153
|
+
useSSOAuthRawToken?: boolean;
|
|
2155
2154
|
|
|
2156
2155
|
/**
|
|
2157
2156
|
* Suppress double initialization warnings from the OTEL SDK.
|