@itwin/core-i18n 4.0.0-dev.60 → 4.0.0-dev.63
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/lib/cjs/ITwinLocalization.js.map +1 -1
- package/lib/cjs/core-i18n.js.map +1 -1
- package/lib/cjs/test/ITwinLocalization.test.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js +154 -147
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.js +12 -5
- package/lib/cjs/test/webpack/bundled-tests.js.map +1 -1
- package/lib/esm/ITwinLocalization.js.map +1 -1
- package/lib/esm/core-i18n.js.map +1 -1
- package/lib/esm/test/ITwinLocalization.test.js.map +1 -1
- package/package.json +11 -10
|
@@ -21421,11 +21421,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21421
21421
|
/* harmony export */ "Tracing": () => (/* binding */ Tracing)
|
|
21422
21422
|
/* harmony export */ });
|
|
21423
21423
|
/* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "../bentley/lib/esm/Logger.js");
|
|
21424
|
+
/*---------------------------------------------------------------------------------------------
|
|
21425
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
21426
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
21427
|
+
*--------------------------------------------------------------------------------------------*/
|
|
21428
|
+
/** @packageDocumentation
|
|
21429
|
+
* @module Logging
|
|
21430
|
+
*/
|
|
21424
21431
|
|
|
21425
21432
|
// re-export so that consumers can construct full SpanOptions object without external dependencies
|
|
21426
21433
|
/**
|
|
21427
|
-
* Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js
|
|
21428
|
-
* @
|
|
21434
|
+
* Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js/enums/_opentelemetry_api.SpanKind.html)
|
|
21435
|
+
* @public
|
|
21429
21436
|
*/
|
|
21430
21437
|
var SpanKind;
|
|
21431
21438
|
(function (SpanKind) {
|
|
@@ -21483,7 +21490,7 @@ function flattenObject(obj) {
|
|
|
21483
21490
|
}
|
|
21484
21491
|
/**
|
|
21485
21492
|
* Enables OpenTelemetry tracing in addition to traditional logging.
|
|
21486
|
-
* @
|
|
21493
|
+
* @public
|
|
21487
21494
|
*/
|
|
21488
21495
|
class Tracing {
|
|
21489
21496
|
/**
|
|
@@ -21517,7 +21524,7 @@ class Tracing {
|
|
|
21517
21524
|
}
|
|
21518
21525
|
/**
|
|
21519
21526
|
* Enable logging to OpenTelemetry. [[Tracing.withSpan]] will be enabled, all log entries will be attached to active span as span events.
|
|
21520
|
-
* [
|
|
21527
|
+
* [IModelHost.startup]($backend) will call this automatically if the `enableOpenTelemetry` option is enabled and it succeeds in requiring `@opentelemetry/api`.
|
|
21521
21528
|
* @note Node.js OpenTelemetry SDK should be initialized by the user.
|
|
21522
21529
|
*/
|
|
21523
21530
|
static enableOpenTelemetry(tracer, api) {
|
|
@@ -21538,7 +21545,7 @@ class Tracing {
|
|
|
21538
21545
|
};
|
|
21539
21546
|
}
|
|
21540
21547
|
/** Set attributes on currently active openTelemetry span. Doesn't do anything if openTelemetry logging is not initialized.
|
|
21541
|
-
* @param attributes
|
|
21548
|
+
* @param attributes The attributes to set
|
|
21542
21549
|
*/
|
|
21543
21550
|
static setAttributes(attributes) {
|
|
21544
21551
|
Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.setAttributes(attributes);
|