@interopio/otel 0.1.0 → 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.
package/dist/index.d.ts CHANGED
@@ -84,13 +84,6 @@ export type TracingState = IOInsights.TracingState;
84
84
  export type WithSpanCallback<T> = IOInsights.WithSpanCallback<T>;
85
85
  export type WithSpanOptions = IOInsights.WithSpanOptions;
86
86
  export type WithSpanDecoratorOptions = IOInsights.WithSpanDecoratorOptions;
87
- export type ioInsightsAutoInstrumentationsPlugin = {
88
- registerInstrumentations: (options: AutoLoaderOptions) => void;
89
- newDocumentLoadInstrumentation: (config?: DocumentLoadInstrumentationConfig) => DocumentLoadInstrumentation;
90
- newUserInteractionInstrumentation: (config?: UserInteractionInstrumentationConfig) => UserInteractionInstrumentation;
91
- newFetchInstrumentation: (config?: FetchInstrumentationConfig) => FetchInstrumentation;
92
- newXMLHttpRequestInstrumentation: (config?: XMLHttpRequestInstrumentationConfig) => XMLHttpRequestInstrumentation;
93
- };
94
87
  import Traces, { withSpan } from "./traces/traces";
95
88
  export { Traces, withSpan };
96
89
  export declare const OTEL_PI_KEY = "__interopIOTracePropagationInfo";
@@ -102,15 +95,6 @@ export type ioInsightsLogsPlugin = {
102
95
  export type LogsManager = IOInsights.LogsManager;
103
96
  export type LogsSettings = IOInsights.LogsSettings;
104
97
  export { Logs } from "./logs/logs";
105
- export { type DocumentLoadInstrumentationConfig } from "@opentelemetry/instrumentation-document-load";
106
- export { type FetchInstrumentationConfig } from "@opentelemetry/instrumentation-fetch";
107
- export type UserInteractionInstrumentationConfig = IOInsights.UserInteractionInstrumentationConfig;
108
- export { type XMLHttpRequestInstrumentationConfig } from "@opentelemetry/instrumentation-xml-http-request";
109
- import { type DocumentLoadInstrumentation, type DocumentLoadInstrumentationConfig } from "@opentelemetry/instrumentation-document-load";
110
- import { type UserInteractionInstrumentation } from "@opentelemetry/instrumentation-user-interaction";
111
- import { type FetchInstrumentation, type FetchInstrumentationConfig } from "@opentelemetry/instrumentation-fetch";
112
- import { type XMLHttpRequestInstrumentation, type XMLHttpRequestInstrumentationConfig } from "@opentelemetry/instrumentation-xml-http-request";
113
- import { type AutoLoaderOptions } from "@opentelemetry/instrumentation";
114
98
  import { type DiagAPI } from "@opentelemetry/api";
115
99
  import { type DetectedResourceAttributes, type Resource } from "@opentelemetry/resources";
116
100
  import { type InMemoryMetricExporter } from "@opentelemetry/sdk-metrics";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASC,CAAC;AAKF,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,wDAAuD;AAA9C,8GAAA,aAAa,OAAA;AACtB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AA0BlB,uCAA4C;AAAnC,kGAAA,UAAU,OAAA;AACnB,+EAA8E;AAArE,oIAAA,wBAAwB,OAAA;AAwEjC,0DAAoD;AAC3C,iBADF,gBAAM,CACE;AAAE,yFADC,iBAAQ,OACD;AACZ,QAAA,WAAW,GAAG,iCAAiC,CAAC;AAC7D,iFAAyD;AAChD,2BADF,0BAAgB,CACE;AAWzB,oCAAmC;AAA1B,4FAAA,IAAI,OAAA;AAkCb,iDAA4E;AAInE,uGAJA,qCAAsB,OAIA;AAAE,mGAJA,iCAAkB,OAIA;AAHnD,2CAAwC;AAI/B,uFAJA,eAAM,OAIA;AAHf,2DAAuD;AAGtC,8FAHR,8BAAa,OAGQ;AAF9B,iDAAgI;AAE1E,4FAF7C,uBAAW,OAE6C;AAAjC,qGAFV,gCAAoB,OAEU;AAAe,gHAFvB,2CAA+B,OAEuB;AAAE,2FAFvB,sBAAU,OAEuB;AAAE,4FAFvB,uBAAW,OAEuB;AAE3H,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;IACnC,OAAO,CAAC,UAAU,GAAG,OAAO,CAA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iDAAgI;AAE1E,4FAF7C,uBAAW,OAE6C;AAAjC,qGAFV,gCAAoB,OAEU;AAAe,gHAFvB,2CAA+B,OAEuB;AAAE,2FAFvB,sBAAU,OAEuB;AAAE,4FAFvB,uBAAW,OAEuB;AAE3H,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;IACnC,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,CAAC,CAAC,QAAa,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CACxE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC;SACrB,IAAI,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC;QACnB,MAAM,EAAE,WAAW;QACnB,KAAK;KACR,CAAC,CAAC;SACF,KAAK,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,CAAC;QACrB,MAAM,EAAE,UAAU;QAClB,MAAM;KACT,CAAC,CAAC,CACN,CACF,CAAC,CAAC;AACL,CAAC;AACD,IAAK,cAcJ;AAdD,WAAK,cAAc;IACjB;;OAEG;IACH,qDAAS,CAAA;IACT;;;OAGG;IACH,+CAAM,CAAA;IACN;;OAEG;IACH,qDAAS,CAAA;AACX,CAAC,EAdI,cAAc,8BAAd,cAAc,QAclB"}
@@ -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,EAAE,CAAC;QACzD,IAAI,CAAC,sBAAsB,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,sBAAsB,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,sBAAsB,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,oBAAoB,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC5C,IAAI,CAAC,oBAAoB,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC5C,IAAI,CAAC,oBAAoB,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC5C,IAAI,CAAC,qBAAqB,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC7C,IAAI,CAAC,sBAAsB,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,oBAAo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E,GAAE,CAAC,CAAC;QAC9C,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2BAA2B,CAAC,uBAAyG;QACxI,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;QACvD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gCAAgC,CAAC,4BAAkH;QACtJ,IAAI,CAAC,4BAA4B,GAAG,4BAA4B,CAAC;QACjE,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,6BAA6B,CAAC,yBAA+G;QAChJ,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
@@ -13,7 +13,6 @@ import {
13
13
  type TimeInput,
14
14
  type TracerProvider,
15
15
  } from "@opentelemetry/api";
16
- import { type UserInteractionInstrumentationConfig as UserInteractionInstrumentationConfigBase } from "@opentelemetry/instrumentation-user-interaction";
17
16
  import { type LogRecord } from "@opentelemetry/api-logs";
18
17
  import {
19
18
  type CompressionAlgorithm,
@@ -27,9 +26,6 @@ import {
27
26
  type SpanProcessor,
28
27
  type TracerConfig,
29
28
  } from "@opentelemetry/sdk-trace-base";
30
- import { type DocumentLoadInstrumentationConfig } from "@opentelemetry/instrumentation-document-load";
31
- import { type FetchInstrumentationConfig } from "@opentelemetry/instrumentation-fetch";
32
- import { type XMLHttpRequestInstrumentationConfig } from "@opentelemetry/instrumentation-xml-http-request";
33
29
  import {
34
30
  type BatchLogRecordProcessorBrowserConfig,
35
31
  type LoggerProvider,
@@ -232,7 +228,12 @@ export namespace IOInsights {
232
228
  * @default false
233
229
  */
234
230
  enabled: boolean;
235
-
231
+ /**
232
+ * How deep the library should recurse into objects when adding
233
+ * labels to metrics.
234
+ *
235
+ * @default 5
236
+ */
236
237
  maxAttributeDepth?: number;
237
238
 
238
239
  /**
@@ -248,27 +249,11 @@ export namespace IOInsights {
248
249
  /**
249
250
  * If `true`, workspace_startup will be published as the legacy histogram metric from
250
251
  * the io.Insights beta releases.
251
- *
252
+ *
252
253
  * @default false
253
254
  */
254
255
  useLegacyWorkspaceStartupMetric?: boolean;
255
256
 
256
- // /**
257
- // * If `true`, use io.Connect's SSO login information when making requests to the OTEL collector.
258
- // *
259
- // * @default false
260
- // */
261
- // useSSOAuth?: boolean;
262
-
263
- // /**
264
- // * Used if io.Connect's SSO login information contains a `token` property. If `true`,
265
- // * the `token` property will be used as-is. If `false`, the `token` property may be
266
- // * prepended with the string "Bearer ", if it does not contain an Authorization type prefix.
267
- // *
268
- // * @default true
269
- // */
270
- // useSSOAuthRawToken?: boolean;
271
-
272
257
  /**
273
258
  * Whether to enable automatic collection of platform-level metrics (CPU, memory, etc.).
274
259
  */
@@ -286,6 +271,8 @@ export namespace IOInsights {
286
271
 
287
272
  /**
288
273
  * Interval in milliseconds between metric export batches.
274
+ *
275
+ * @default 30_000
289
276
  */
290
277
  publishInterval?: number;
291
278
 
@@ -363,9 +350,16 @@ export namespace IOInsights {
363
350
 
364
351
  /**
365
352
  * Whether to apply predefined default filters for platform metrics.
353
+ *
354
+ * @default true
366
355
  */
367
356
  useDefaultFilters?: boolean;
368
357
 
358
+ /**
359
+ * This property is for internal use only.
360
+ */
361
+ defaultFilters?: MetricFilter[];
362
+
369
363
  /**
370
364
  * Options to use when creating the PeriodicExportingMetricReader to use when exporting metrics.
371
365
  */
@@ -533,7 +527,11 @@ export namespace IOInsights {
533
527
  * Metric filters allow controlling specific metric data points, e.g.
534
528
  * whether a particular value of a specific metric will be published.
535
529
  */
536
- export interface MetricDefaultFilter {
530
+ export interface MetricDefaultFilter extends MetricPublishingSettings {
531
+ /**
532
+ * Matches the name of the metric
533
+ */
534
+ name?: string;
537
535
  /**
538
536
  * Matches the type of the metric.
539
537
  */
@@ -556,11 +554,8 @@ export namespace IOInsights {
556
554
  /**
557
555
  * Whether or not the value for the matching metric will be published.
558
556
  */
559
- enabled: boolean;
560
- /**
561
- * Sampling probability.
562
- */
563
- sample?: number | boolean;
557
+ enabled?: boolean;
558
+
564
559
  /**
565
560
  * If `true`, this filter rule will be matched before any default filters provided
566
561
  * by io.Connect. The default filters are usually meant filter out non-representative
@@ -579,11 +574,11 @@ export namespace IOInsights {
579
574
  /**
580
575
  * The name of the matched metric.
581
576
  */
582
- name: string;
577
+ name?: string;
583
578
  /**
584
579
  * The type of the matched metric.
585
580
  */
586
- type: MetricType;
581
+ type?: MetricType;
587
582
  }
588
583
 
589
584
  /**
@@ -1169,21 +1164,6 @@ export namespace IOInsights {
1169
1164
  */
1170
1165
  rootPropagationInfo?: PropagationInfo;
1171
1166
 
1172
- // /**
1173
- // * If `true`, use io.Connect's SSO login information when making requests to the OTEL collector.
1174
- // *
1175
- // * @default false
1176
- // */
1177
- // useSSOAuth?: boolean;
1178
- // /**
1179
- // * Used if io.Connect's SSO login information contains a `token` property. If `true`,
1180
- // * the `token` property will be used as-is. If `false`, the `token` property may be
1181
- // * prepended with the string "Bearer ", if it does not contain an Authorization type prefix.
1182
- // *
1183
- // * @default true
1184
- // */
1185
- // useSSOAuthRawToken?: boolean;
1186
-
1187
1167
  /**
1188
1168
  * Name of span hit counter metric, set to null to disable.
1189
1169
  *
@@ -1342,6 +1322,8 @@ export namespace IOInsights {
1342
1322
  /**
1343
1323
  * How long after application startup will any traced operations
1344
1324
  * automatically be nested under the application startup trace.
1325
+ *
1326
+ * @default 3000
1345
1327
  */
1346
1328
  startupParentSpanTimeoutMs?: number;
1347
1329
 
@@ -1535,6 +1517,8 @@ export namespace IOInsights {
1535
1517
  /**
1536
1518
  * If a tracing span is disabled by filter, setting this to "true" will stop the propagation
1537
1519
  * of trace nesting info across it.
1520
+ *
1521
+ * @default false
1538
1522
  */
1539
1523
  stopPropagationIfSpanIsDisabled?: boolean;
1540
1524
  /**
@@ -1578,12 +1562,16 @@ export namespace IOInsights {
1578
1562
  /**
1579
1563
  * If true, enabled spans will also be published as log entries using the `traceLogger` passed to the
1580
1564
  * builder instance when building the Traces module.
1565
+ *
1566
+ * @default false
1581
1567
  */
1582
1568
  log?: boolean;
1583
1569
 
1584
1570
  /**
1585
1571
  * If true, disabled spans will also be published as log entries using the `traceLogger` passed to the
1586
1572
  * builder instance when building the Traces module.
1573
+ *
1574
+ * @default false
1587
1575
  */
1588
1576
  logOnDisabledSpans?: boolean;
1589
1577
 
@@ -1595,6 +1583,8 @@ export namespace IOInsights {
1595
1583
  countMetric?: boolean;
1596
1584
  /**
1597
1585
  * Whether the span will be counted in the insights_trace_count metric if disabled. See TracesSettings.countMetric.
1586
+ *
1587
+ * @default false
1598
1588
  */
1599
1589
  countMetricOnDisabledSpans?: boolean;
1600
1590
  /**
@@ -1605,6 +1595,8 @@ export namespace IOInsights {
1605
1595
  resultMetric?: boolean;
1606
1596
  /**
1607
1597
  * Whether the span will be counted in the insights_trace_result metric if disabled. See TracesSettings.resultMetric.
1598
+ *
1599
+ * @default false
1608
1600
  */
1609
1601
  resultMetricOnDisabledSpans?: boolean;
1610
1602
  /**
@@ -1615,6 +1607,8 @@ export namespace IOInsights {
1615
1607
  durationMetric?: boolean;
1616
1608
  /**
1617
1609
  * Whether the span will be counted in the insights_trace_count metric if disabled. See TracesSettings.durationMetric.
1610
+ *
1611
+ * @default false
1618
1612
  */
1619
1613
  durationMetricOnDisabledSpans?: boolean;
1620
1614
  /**
@@ -1628,7 +1622,7 @@ export namespace IOInsights {
1628
1622
  * How deep addData method should recurse into objects when adding
1629
1623
  * attributes to spans.
1630
1624
  *
1631
- * Defaults to 3.
1625
+ * @default 5
1632
1626
  */
1633
1627
  maxAttributeDepth?: number;
1634
1628
  /**
@@ -1641,6 +1635,8 @@ export namespace IOInsights {
1641
1635
  forceChildTracing?: boolean;
1642
1636
  /**
1643
1637
  * If specified, spans whose duration is lower than this will not be sampled.
1638
+ *
1639
+ * @default 0
1644
1640
  */
1645
1641
  minDurationMs?: number;
1646
1642
 
@@ -1727,19 +1723,6 @@ export namespace IOInsights {
1727
1723
  sample: number | boolean;
1728
1724
  }
1729
1725
 
1730
- /**
1731
- * Configuration for automatic instrumentation of user interactions.
1732
- * Extends the base OpenTelemetry user interaction instrumentation with additional throttling options.
1733
- */
1734
- export interface UserInteractionInstrumentationConfig
1735
- extends UserInteractionInstrumentationConfigBase {
1736
- /**
1737
- * Minimum interval in milliseconds between capturing consecutive user interaction events.
1738
- * Used to throttle high-frequency interactions and reduce span volume.
1739
- */
1740
- throttleIntervalMs?: number;
1741
- }
1742
-
1743
1726
  /**
1744
1727
  * Configuration for Clickstream trace behavior.
1745
1728
  * Controls how user interaction events are tracked and organized in traces.
@@ -1877,20 +1860,6 @@ export namespace IOInsights {
1877
1860
  * @default false
1878
1861
  */
1879
1862
  enabled: boolean;
1880
- // /**
1881
- // * If `true`, use io.Connect's SSO login information when making requests to the OTEL collector.
1882
- // *
1883
- // * @default false
1884
- // */
1885
- // useSSOAuth?: boolean;
1886
- // /**
1887
- // * Used if io.Connect's SSO login information contains a `token` property. If `true`,
1888
- // * the `token` property will be used as-is. If `false`, the `token` property may be
1889
- // * prepended with the string "Bearer ", if it does not contain an Authorization type prefix.
1890
- // *
1891
- // * @default true
1892
- // */
1893
- // useSSOAuthRawToken?: boolean;
1894
1863
 
1895
1864
  /**
1896
1865
  * OTLP logs exporter endpoint URL.
@@ -1965,7 +1934,10 @@ export namespace IOInsights {
1965
1934
  */
1966
1935
  useDefaultFilters?: boolean;
1967
1936
  /**
1968
- * Maximum length for log attribute object nesting.
1937
+ * How deep the library should recurse into objects when adding
1938
+ * labels to logs.
1939
+ *
1940
+ * @default 5
1969
1941
  */
1970
1942
  maxAttributeDepth?: number;
1971
1943
  /**
@@ -2034,6 +2006,8 @@ export namespace IOInsights {
2034
2006
  hideRegex?: string;
2035
2007
  /**
2036
2008
  * If `false`, the log entry will not be published.
2009
+ *
2010
+ * @default true
2037
2011
  */
2038
2012
  enabled?: boolean;
2039
2013
  }
@@ -2155,20 +2129,28 @@ export namespace IOInsights {
2155
2129
  */
2156
2130
  applicationName?: string;
2157
2131
 
2158
- // /**
2159
- // * If `true`, use io.Connect's SSO login information when making requests to the OTEL collector.
2160
- // *
2161
- // * @default false
2162
- // */
2163
- // useSSOAuth?: boolean;
2164
- // /**
2165
- // * Used if io.Connect's SSO login information contains a `token` property. If `true`,
2166
- // * the `token` property will be used as-is. If `false`, the `token` property may be
2167
- // * prepended with the string "Bearer ", if it does not contain an Authorization type prefix.
2168
- // *
2169
- // * @default true
2170
- // */
2171
- // useSSOAuthRawToken?: boolean;
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;
2172
2154
 
2173
2155
  /**
2174
2156
  * Suppress double initialization warnings from the OTEL SDK.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interopio/otel",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "io.Insights observability library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",