@interopio/otel 0.1.12 → 0.1.14

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.
Files changed (2) hide show
  1. package/insights.d.ts +21 -1
  2. package/package.json +1 -1
package/insights.d.ts CHANGED
@@ -1862,7 +1862,7 @@ export namespace IOInsights {
1862
1862
  *
1863
1863
  * @default true
1864
1864
  */
1865
- allowRoot?: boolean;
1865
+ canBeRoot?: boolean;
1866
1866
 
1867
1867
  /**
1868
1868
  * If `true`, requests to the OTEL Collector endpoints will not be instrumented.
@@ -2368,6 +2368,26 @@ export namespace IOInsights {
2368
2368
  */
2369
2369
  enabled: boolean;
2370
2370
 
2371
+ /**
2372
+ * Whether the library should register its own instances of the OTEL SDK global objects,
2373
+ * e.g. MeterProvider. This is useful for controlling which instance of the SDK is used,
2374
+ * in applications that initialize their own SDK.
2375
+ *
2376
+ * If `true`, the io.Insights library will register its own OTEL SDK global object instances
2377
+ * if none are already registered. This means an already initialized SDK will be used in preference
2378
+ * to the one initialized by io.Insights.
2379
+ *
2380
+ * If `"force"`, the io.Insights library will register its own OTEL SDK global object instances
2381
+ * unconditionally, regardless of any existing registrations. This means any already initialized SDK
2382
+ * will not be used and the library will always use its own instance.
2383
+ *
2384
+ * If `false`, the io.Insights library will not register its own OTEL SDK global object instances. The
2385
+ * library will require an already initialized OTEL SDK instance.
2386
+ *
2387
+ * @default true
2388
+ */
2389
+ registerGlobalOTELObjects?: boolean | "force";
2390
+
2371
2391
  /**
2372
2392
  * Internal library property.
2373
2393
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interopio/otel",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "io.Insights observability library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",