@fluidframework/telemetry-utils 2.0.0-internal.2.0.3 → 2.0.0-internal.2.1.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/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -21
- package/dist/index.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/index.d.ts +10 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -10
- package/lib/index.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +7 -6
- package/src/index.ts +38 -10
- package/src/packageVersion.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
export * from "./debugLogger";
|
|
6
|
-
export * from "./errorLogging";
|
|
7
|
-
export * from "./eventEmitterWithErrorHandling";
|
|
8
|
-
export * from "./events";
|
|
9
|
-
export * from "./fluidErrorBase";
|
|
10
|
-
export * from "./logger";
|
|
11
|
-
export * from "./mockLogger";
|
|
12
|
-
export * from "./thresholdCounter";
|
|
13
|
-
export * from "./utils";
|
|
14
|
-
export * from "./sampledTelemetryHelper";
|
|
15
5
|
export { MonitoringContext, IConfigProviderBase, sessionStorageConfigProvider, mixinMonitoringContext, IConfigProvider, ConfigTypes, loggerToMonitoringContext, } from "./config";
|
|
6
|
+
export { DebugLogger } from "./debugLogger";
|
|
7
|
+
export { extractLogSafeErrorProperties, generateErrorWithStack, generateStack, getCircularReplacer, IFluidErrorAnnotations, isExternalError, isILoggingError, isTaggedTelemetryPropertyValue, LoggingError, NORMALIZED_ERROR_TYPE, normalizeError, wrapError, wrapErrorAndLog, } from "./errorLogging";
|
|
8
|
+
export { EventEmitterWithErrorHandling } from "./eventEmitterWithErrorHandling";
|
|
9
|
+
export { connectedEventName, disconnectedEventName, raiseConnectedEvent, safeRaiseEvent } from "./events";
|
|
10
|
+
export { hasErrorInstanceId, IFluidErrorBase, isFluidError, isValidLegacyError } from "./fluidErrorBase";
|
|
11
|
+
export { BaseTelemetryNullLogger, ChildLogger, IPerformanceEventMarkers, ITelemetryLoggerPropertyBag, ITelemetryLoggerPropertyBags, MultiSinkLogger, PerformanceEvent, TaggedLoggerAdapter, TelemetryDataTag, TelemetryEventPropertyTypes, TelemetryLogger, TelemetryNullLogger, TelemetryUTLogger, } from "./logger";
|
|
12
|
+
export { MockLogger } from "./mockLogger";
|
|
13
|
+
export { ThresholdCounter } from "./thresholdCounter";
|
|
14
|
+
export { SampledTelemetryHelper } from "./sampledTelemetryHelper";
|
|
15
|
+
export { logIfFalse } from "./utils";
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACH,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EACf,WAAW,EACX,yBAAyB,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,8BAA8B,EAC9B,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,SAAS,EACT,eAAe,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1G,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACzG,OAAO,EACN,uBAAuB,EACvB,WAAW,EACX,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,eAAe,EACf,mBAAmB,EACnB,iBAAiB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,32 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.loggerToMonitoringContext = exports.mixinMonitoringContext = exports.sessionStorageConfigProvider = void 0;
|
|
3
|
+
exports.logIfFalse = exports.SampledTelemetryHelper = exports.ThresholdCounter = exports.MockLogger = exports.TelemetryUTLogger = exports.TelemetryNullLogger = exports.TelemetryLogger = exports.TelemetryDataTag = exports.TaggedLoggerAdapter = exports.PerformanceEvent = exports.MultiSinkLogger = exports.ChildLogger = exports.BaseTelemetryNullLogger = exports.isValidLegacyError = exports.isFluidError = exports.hasErrorInstanceId = exports.safeRaiseEvent = exports.raiseConnectedEvent = exports.disconnectedEventName = exports.connectedEventName = exports.EventEmitterWithErrorHandling = exports.wrapErrorAndLog = exports.wrapError = exports.normalizeError = exports.NORMALIZED_ERROR_TYPE = exports.LoggingError = exports.isTaggedTelemetryPropertyValue = exports.isILoggingError = exports.isExternalError = exports.getCircularReplacer = exports.generateStack = exports.generateErrorWithStack = exports.extractLogSafeErrorProperties = exports.DebugLogger = exports.loggerToMonitoringContext = exports.mixinMonitoringContext = exports.sessionStorageConfigProvider = void 0;
|
|
14
4
|
/*!
|
|
15
5
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
16
6
|
* Licensed under the MIT License.
|
|
17
7
|
*/
|
|
18
|
-
__exportStar(require("./debugLogger"), exports);
|
|
19
|
-
__exportStar(require("./errorLogging"), exports);
|
|
20
|
-
__exportStar(require("./eventEmitterWithErrorHandling"), exports);
|
|
21
|
-
__exportStar(require("./events"), exports);
|
|
22
|
-
__exportStar(require("./fluidErrorBase"), exports);
|
|
23
|
-
__exportStar(require("./logger"), exports);
|
|
24
|
-
__exportStar(require("./mockLogger"), exports);
|
|
25
|
-
__exportStar(require("./thresholdCounter"), exports);
|
|
26
|
-
__exportStar(require("./utils"), exports);
|
|
27
|
-
__exportStar(require("./sampledTelemetryHelper"), exports);
|
|
28
8
|
var config_1 = require("./config");
|
|
29
9
|
Object.defineProperty(exports, "sessionStorageConfigProvider", { enumerable: true, get: function () { return config_1.sessionStorageConfigProvider; } });
|
|
30
10
|
Object.defineProperty(exports, "mixinMonitoringContext", { enumerable: true, get: function () { return config_1.mixinMonitoringContext; } });
|
|
31
11
|
Object.defineProperty(exports, "loggerToMonitoringContext", { enumerable: true, get: function () { return config_1.loggerToMonitoringContext; } });
|
|
12
|
+
var debugLogger_1 = require("./debugLogger");
|
|
13
|
+
Object.defineProperty(exports, "DebugLogger", { enumerable: true, get: function () { return debugLogger_1.DebugLogger; } });
|
|
14
|
+
var errorLogging_1 = require("./errorLogging");
|
|
15
|
+
Object.defineProperty(exports, "extractLogSafeErrorProperties", { enumerable: true, get: function () { return errorLogging_1.extractLogSafeErrorProperties; } });
|
|
16
|
+
Object.defineProperty(exports, "generateErrorWithStack", { enumerable: true, get: function () { return errorLogging_1.generateErrorWithStack; } });
|
|
17
|
+
Object.defineProperty(exports, "generateStack", { enumerable: true, get: function () { return errorLogging_1.generateStack; } });
|
|
18
|
+
Object.defineProperty(exports, "getCircularReplacer", { enumerable: true, get: function () { return errorLogging_1.getCircularReplacer; } });
|
|
19
|
+
Object.defineProperty(exports, "isExternalError", { enumerable: true, get: function () { return errorLogging_1.isExternalError; } });
|
|
20
|
+
Object.defineProperty(exports, "isILoggingError", { enumerable: true, get: function () { return errorLogging_1.isILoggingError; } });
|
|
21
|
+
Object.defineProperty(exports, "isTaggedTelemetryPropertyValue", { enumerable: true, get: function () { return errorLogging_1.isTaggedTelemetryPropertyValue; } });
|
|
22
|
+
Object.defineProperty(exports, "LoggingError", { enumerable: true, get: function () { return errorLogging_1.LoggingError; } });
|
|
23
|
+
Object.defineProperty(exports, "NORMALIZED_ERROR_TYPE", { enumerable: true, get: function () { return errorLogging_1.NORMALIZED_ERROR_TYPE; } });
|
|
24
|
+
Object.defineProperty(exports, "normalizeError", { enumerable: true, get: function () { return errorLogging_1.normalizeError; } });
|
|
25
|
+
Object.defineProperty(exports, "wrapError", { enumerable: true, get: function () { return errorLogging_1.wrapError; } });
|
|
26
|
+
Object.defineProperty(exports, "wrapErrorAndLog", { enumerable: true, get: function () { return errorLogging_1.wrapErrorAndLog; } });
|
|
27
|
+
var eventEmitterWithErrorHandling_1 = require("./eventEmitterWithErrorHandling");
|
|
28
|
+
Object.defineProperty(exports, "EventEmitterWithErrorHandling", { enumerable: true, get: function () { return eventEmitterWithErrorHandling_1.EventEmitterWithErrorHandling; } });
|
|
29
|
+
var events_1 = require("./events");
|
|
30
|
+
Object.defineProperty(exports, "connectedEventName", { enumerable: true, get: function () { return events_1.connectedEventName; } });
|
|
31
|
+
Object.defineProperty(exports, "disconnectedEventName", { enumerable: true, get: function () { return events_1.disconnectedEventName; } });
|
|
32
|
+
Object.defineProperty(exports, "raiseConnectedEvent", { enumerable: true, get: function () { return events_1.raiseConnectedEvent; } });
|
|
33
|
+
Object.defineProperty(exports, "safeRaiseEvent", { enumerable: true, get: function () { return events_1.safeRaiseEvent; } });
|
|
34
|
+
var fluidErrorBase_1 = require("./fluidErrorBase");
|
|
35
|
+
Object.defineProperty(exports, "hasErrorInstanceId", { enumerable: true, get: function () { return fluidErrorBase_1.hasErrorInstanceId; } });
|
|
36
|
+
Object.defineProperty(exports, "isFluidError", { enumerable: true, get: function () { return fluidErrorBase_1.isFluidError; } });
|
|
37
|
+
Object.defineProperty(exports, "isValidLegacyError", { enumerable: true, get: function () { return fluidErrorBase_1.isValidLegacyError; } });
|
|
38
|
+
var logger_1 = require("./logger");
|
|
39
|
+
Object.defineProperty(exports, "BaseTelemetryNullLogger", { enumerable: true, get: function () { return logger_1.BaseTelemetryNullLogger; } });
|
|
40
|
+
Object.defineProperty(exports, "ChildLogger", { enumerable: true, get: function () { return logger_1.ChildLogger; } });
|
|
41
|
+
Object.defineProperty(exports, "MultiSinkLogger", { enumerable: true, get: function () { return logger_1.MultiSinkLogger; } });
|
|
42
|
+
Object.defineProperty(exports, "PerformanceEvent", { enumerable: true, get: function () { return logger_1.PerformanceEvent; } });
|
|
43
|
+
Object.defineProperty(exports, "TaggedLoggerAdapter", { enumerable: true, get: function () { return logger_1.TaggedLoggerAdapter; } });
|
|
44
|
+
Object.defineProperty(exports, "TelemetryDataTag", { enumerable: true, get: function () { return logger_1.TelemetryDataTag; } });
|
|
45
|
+
Object.defineProperty(exports, "TelemetryLogger", { enumerable: true, get: function () { return logger_1.TelemetryLogger; } });
|
|
46
|
+
Object.defineProperty(exports, "TelemetryNullLogger", { enumerable: true, get: function () { return logger_1.TelemetryNullLogger; } });
|
|
47
|
+
Object.defineProperty(exports, "TelemetryUTLogger", { enumerable: true, get: function () { return logger_1.TelemetryUTLogger; } });
|
|
48
|
+
var mockLogger_1 = require("./mockLogger");
|
|
49
|
+
Object.defineProperty(exports, "MockLogger", { enumerable: true, get: function () { return mockLogger_1.MockLogger; } });
|
|
50
|
+
var thresholdCounter_1 = require("./thresholdCounter");
|
|
51
|
+
Object.defineProperty(exports, "ThresholdCounter", { enumerable: true, get: function () { return thresholdCounter_1.ThresholdCounter; } });
|
|
52
|
+
var sampledTelemetryHelper_1 = require("./sampledTelemetryHelper");
|
|
53
|
+
Object.defineProperty(exports, "SampledTelemetryHelper", { enumerable: true, get: function () { return sampledTelemetryHelper_1.SampledTelemetryHelper; } });
|
|
54
|
+
var utils_1 = require("./utils");
|
|
55
|
+
Object.defineProperty(exports, "logIfFalse", { enumerable: true, get: function () { return utils_1.logIfFalse; } });
|
|
32
56
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,mCAQkB;AALd,sHAAA,4BAA4B,OAAA;AAC5B,gHAAA,sBAAsB,OAAA;AAGtB,mHAAA,yBAAyB,OAAA;AAE7B,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,+CAcwB;AAbvB,6HAAA,6BAA6B,OAAA;AAC7B,sHAAA,sBAAsB,OAAA;AACtB,6GAAA,aAAa,OAAA;AACb,mHAAA,mBAAmB,OAAA;AAEnB,+GAAA,eAAe,OAAA;AACf,+GAAA,eAAe,OAAA;AACf,8HAAA,8BAA8B,OAAA;AAC9B,4GAAA,YAAY,OAAA;AACZ,qHAAA,qBAAqB,OAAA;AACrB,8GAAA,cAAc,OAAA;AACd,yGAAA,SAAS,OAAA;AACT,+GAAA,eAAe,OAAA;AAEhB,iFAAgF;AAAvE,8IAAA,6BAA6B,OAAA;AACtC,mCAA0G;AAAjG,4GAAA,kBAAkB,OAAA;AAAE,+GAAA,qBAAqB,OAAA;AAAE,6GAAA,mBAAmB,OAAA;AAAE,wGAAA,cAAc,OAAA;AACvF,mDAAyG;AAAhG,oHAAA,kBAAkB,OAAA;AAAmB,8GAAA,YAAY,OAAA;AAAE,oHAAA,kBAAkB,OAAA;AAC9E,mCAckB;AAbjB,iHAAA,uBAAuB,OAAA;AACvB,qGAAA,WAAW,OAAA;AAIX,yGAAA,eAAe,OAAA;AACf,0GAAA,gBAAgB,OAAA;AAChB,6GAAA,mBAAmB,OAAA;AACnB,0GAAA,gBAAgB,OAAA;AAEhB,yGAAA,eAAe,OAAA;AACf,6GAAA,mBAAmB,OAAA;AACnB,2GAAA,iBAAiB,OAAA;AAElB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,mEAAkE;AAAzD,gIAAA,sBAAsB,OAAA;AAC/B,iCAAqC;AAA5B,mGAAA,UAAU,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nexport {\n MonitoringContext,\n IConfigProviderBase,\n sessionStorageConfigProvider,\n mixinMonitoringContext,\n IConfigProvider,\n ConfigTypes,\n loggerToMonitoringContext,\n} from \"./config\";\nexport { DebugLogger } from \"./debugLogger\";\nexport {\n\textractLogSafeErrorProperties,\n\tgenerateErrorWithStack,\n\tgenerateStack,\n\tgetCircularReplacer,\n\tIFluidErrorAnnotations,\n\tisExternalError,\n\tisILoggingError,\n\tisTaggedTelemetryPropertyValue,\n\tLoggingError,\n\tNORMALIZED_ERROR_TYPE,\n\tnormalizeError,\n\twrapError,\n\twrapErrorAndLog,\n} from \"./errorLogging\";\nexport { EventEmitterWithErrorHandling } from \"./eventEmitterWithErrorHandling\";\nexport { connectedEventName, disconnectedEventName, raiseConnectedEvent, safeRaiseEvent } from \"./events\";\nexport { hasErrorInstanceId, IFluidErrorBase, isFluidError, isValidLegacyError } from \"./fluidErrorBase\";\nexport {\n\tBaseTelemetryNullLogger,\n\tChildLogger,\n\tIPerformanceEventMarkers,\n\tITelemetryLoggerPropertyBag,\n\tITelemetryLoggerPropertyBags,\n\tMultiSinkLogger,\n\tPerformanceEvent,\n\tTaggedLoggerAdapter,\n\tTelemetryDataTag,\n\tTelemetryEventPropertyTypes,\n\tTelemetryLogger,\n\tTelemetryNullLogger,\n\tTelemetryUTLogger,\n} from \"./logger\";\nexport { MockLogger } from \"./mockLogger\";\nexport { ThresholdCounter } from \"./thresholdCounter\";\nexport { SampledTelemetryHelper } from \"./sampledTelemetryHelper\";\nexport { logIfFalse } from \"./utils\";\n"]}
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/telemetry-utils";
|
|
8
|
-
export declare const pkgVersion = "2.0.0-internal.2.0
|
|
8
|
+
export declare const pkgVersion = "2.0.0-internal.2.1.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
10
|
exports.pkgName = "@fluidframework/telemetry-utils";
|
|
11
|
-
exports.pkgVersion = "2.0.0-internal.2.0
|
|
11
|
+
exports.pkgVersion = "2.0.0-internal.2.1.0";
|
|
12
12
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,iCAAiC,CAAC;AAC5C,QAAA,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/telemetry-utils\";\nexport const pkgVersion = \"2.0.0-internal.2.0
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,iCAAiC,CAAC;AAC5C,QAAA,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/telemetry-utils\";\nexport const pkgVersion = \"2.0.0-internal.2.1.0\";\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
export * from "./debugLogger";
|
|
6
|
-
export * from "./errorLogging";
|
|
7
|
-
export * from "./eventEmitterWithErrorHandling";
|
|
8
|
-
export * from "./events";
|
|
9
|
-
export * from "./fluidErrorBase";
|
|
10
|
-
export * from "./logger";
|
|
11
|
-
export * from "./mockLogger";
|
|
12
|
-
export * from "./thresholdCounter";
|
|
13
|
-
export * from "./utils";
|
|
14
|
-
export * from "./sampledTelemetryHelper";
|
|
15
5
|
export { MonitoringContext, IConfigProviderBase, sessionStorageConfigProvider, mixinMonitoringContext, IConfigProvider, ConfigTypes, loggerToMonitoringContext, } from "./config";
|
|
6
|
+
export { DebugLogger } from "./debugLogger";
|
|
7
|
+
export { extractLogSafeErrorProperties, generateErrorWithStack, generateStack, getCircularReplacer, IFluidErrorAnnotations, isExternalError, isILoggingError, isTaggedTelemetryPropertyValue, LoggingError, NORMALIZED_ERROR_TYPE, normalizeError, wrapError, wrapErrorAndLog, } from "./errorLogging";
|
|
8
|
+
export { EventEmitterWithErrorHandling } from "./eventEmitterWithErrorHandling";
|
|
9
|
+
export { connectedEventName, disconnectedEventName, raiseConnectedEvent, safeRaiseEvent } from "./events";
|
|
10
|
+
export { hasErrorInstanceId, IFluidErrorBase, isFluidError, isValidLegacyError } from "./fluidErrorBase";
|
|
11
|
+
export { BaseTelemetryNullLogger, ChildLogger, IPerformanceEventMarkers, ITelemetryLoggerPropertyBag, ITelemetryLoggerPropertyBags, MultiSinkLogger, PerformanceEvent, TaggedLoggerAdapter, TelemetryDataTag, TelemetryEventPropertyTypes, TelemetryLogger, TelemetryNullLogger, TelemetryUTLogger, } from "./logger";
|
|
12
|
+
export { MockLogger } from "./mockLogger";
|
|
13
|
+
export { ThresholdCounter } from "./thresholdCounter";
|
|
14
|
+
export { SampledTelemetryHelper } from "./sampledTelemetryHelper";
|
|
15
|
+
export { logIfFalse } from "./utils";
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACH,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EACf,WAAW,EACX,yBAAyB,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,8BAA8B,EAC9B,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,SAAS,EACT,eAAe,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1G,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACzG,OAAO,EACN,uBAAuB,EACvB,WAAW,EACX,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,eAAe,EACf,mBAAmB,EACnB,iBAAiB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
export * from "./debugLogger";
|
|
6
|
-
export * from "./errorLogging";
|
|
7
|
-
export * from "./eventEmitterWithErrorHandling";
|
|
8
|
-
export * from "./events";
|
|
9
|
-
export * from "./fluidErrorBase";
|
|
10
|
-
export * from "./logger";
|
|
11
|
-
export * from "./mockLogger";
|
|
12
|
-
export * from "./thresholdCounter";
|
|
13
|
-
export * from "./utils";
|
|
14
|
-
export * from "./sampledTelemetryHelper";
|
|
15
5
|
export { sessionStorageConfigProvider, mixinMonitoringContext, loggerToMonitoringContext, } from "./config";
|
|
6
|
+
export { DebugLogger } from "./debugLogger";
|
|
7
|
+
export { extractLogSafeErrorProperties, generateErrorWithStack, generateStack, getCircularReplacer, isExternalError, isILoggingError, isTaggedTelemetryPropertyValue, LoggingError, NORMALIZED_ERROR_TYPE, normalizeError, wrapError, wrapErrorAndLog, } from "./errorLogging";
|
|
8
|
+
export { EventEmitterWithErrorHandling } from "./eventEmitterWithErrorHandling";
|
|
9
|
+
export { connectedEventName, disconnectedEventName, raiseConnectedEvent, safeRaiseEvent } from "./events";
|
|
10
|
+
export { hasErrorInstanceId, isFluidError, isValidLegacyError } from "./fluidErrorBase";
|
|
11
|
+
export { BaseTelemetryNullLogger, ChildLogger, MultiSinkLogger, PerformanceEvent, TaggedLoggerAdapter, TelemetryDataTag, TelemetryLogger, TelemetryNullLogger, TelemetryUTLogger, } from "./logger";
|
|
12
|
+
export { MockLogger } from "./mockLogger";
|
|
13
|
+
export { ThresholdCounter } from "./thresholdCounter";
|
|
14
|
+
export { SampledTelemetryHelper } from "./sampledTelemetryHelper";
|
|
15
|
+
export { logIfFalse } from "./utils";
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAGH,4BAA4B,EAC5B,sBAAsB,EAGtB,yBAAyB,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EAEnB,eAAe,EACf,eAAe,EACf,8BAA8B,EAC9B,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,SAAS,EACT,eAAe,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1G,OAAO,EAAE,kBAAkB,EAAmB,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACzG,OAAO,EACN,uBAAuB,EACvB,WAAW,EAIX,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAEhB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nexport {\n MonitoringContext,\n IConfigProviderBase,\n sessionStorageConfigProvider,\n mixinMonitoringContext,\n IConfigProvider,\n ConfigTypes,\n loggerToMonitoringContext,\n} from \"./config\";\nexport { DebugLogger } from \"./debugLogger\";\nexport {\n\textractLogSafeErrorProperties,\n\tgenerateErrorWithStack,\n\tgenerateStack,\n\tgetCircularReplacer,\n\tIFluidErrorAnnotations,\n\tisExternalError,\n\tisILoggingError,\n\tisTaggedTelemetryPropertyValue,\n\tLoggingError,\n\tNORMALIZED_ERROR_TYPE,\n\tnormalizeError,\n\twrapError,\n\twrapErrorAndLog,\n} from \"./errorLogging\";\nexport { EventEmitterWithErrorHandling } from \"./eventEmitterWithErrorHandling\";\nexport { connectedEventName, disconnectedEventName, raiseConnectedEvent, safeRaiseEvent } from \"./events\";\nexport { hasErrorInstanceId, IFluidErrorBase, isFluidError, isValidLegacyError } from \"./fluidErrorBase\";\nexport {\n\tBaseTelemetryNullLogger,\n\tChildLogger,\n\tIPerformanceEventMarkers,\n\tITelemetryLoggerPropertyBag,\n\tITelemetryLoggerPropertyBags,\n\tMultiSinkLogger,\n\tPerformanceEvent,\n\tTaggedLoggerAdapter,\n\tTelemetryDataTag,\n\tTelemetryEventPropertyTypes,\n\tTelemetryLogger,\n\tTelemetryNullLogger,\n\tTelemetryUTLogger,\n} from \"./logger\";\nexport { MockLogger } from \"./mockLogger\";\nexport { ThresholdCounter } from \"./thresholdCounter\";\nexport { SampledTelemetryHelper } from \"./sampledTelemetryHelper\";\nexport { logIfFalse } from \"./utils\";\n"]}
|
package/lib/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/telemetry-utils";
|
|
8
|
-
export declare const pkgVersion = "2.0.0-internal.2.0
|
|
8
|
+
export declare const pkgVersion = "2.0.0-internal.2.1.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/lib/packageVersion.js
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export const pkgName = "@fluidframework/telemetry-utils";
|
|
8
|
-
export const pkgVersion = "2.0.0-internal.2.0
|
|
8
|
+
export const pkgVersion = "2.0.0-internal.2.1.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,iCAAiC,CAAC;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/telemetry-utils\";\nexport const pkgVersion = \"2.0.0-internal.2.0
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,iCAAiC,CAAC;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/telemetry-utils\";\nexport const pkgVersion = \"2.0.0-internal.2.1.0\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/telemetry-utils",
|
|
3
|
-
"version": "2.0.0-internal.2.0
|
|
3
|
+
"version": "2.0.0-internal.2.1.0",
|
|
4
4
|
"description": "Collection of telemetry relates utilities for Fluid",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -71,10 +71,11 @@
|
|
|
71
71
|
"uuid": "^8.3.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@
|
|
75
|
-
"@fluidframework/build-
|
|
76
|
-
"@fluidframework/
|
|
77
|
-
"@fluidframework/
|
|
74
|
+
"@fluid-tools/build-cli": "^0.5.0",
|
|
75
|
+
"@fluidframework/build-common": "^1.1.0",
|
|
76
|
+
"@fluidframework/build-tools": "^0.5.0",
|
|
77
|
+
"@fluidframework/eslint-config-fluid": "^1.1.0",
|
|
78
|
+
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.2.1.0 <2.0.0-internal.3.0.0",
|
|
78
79
|
"@fluidframework/telemetry-utils-previous": "npm:@fluidframework/telemetry-utils@2.0.0-internal.2.0.0",
|
|
79
80
|
"@microsoft/api-extractor": "^7.22.2",
|
|
80
81
|
"@rushstack/eslint-config": "^2.5.1",
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
"typescript": "~4.5.5"
|
|
94
95
|
},
|
|
95
96
|
"typeValidation": {
|
|
96
|
-
"version": "2.0.0-internal.2.0
|
|
97
|
+
"version": "2.0.0-internal.2.1.0",
|
|
97
98
|
"broken": {}
|
|
98
99
|
}
|
|
99
100
|
}
|
package/src/index.ts
CHANGED
|
@@ -2,16 +2,6 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
export * from "./debugLogger";
|
|
6
|
-
export * from "./errorLogging";
|
|
7
|
-
export * from "./eventEmitterWithErrorHandling";
|
|
8
|
-
export * from "./events";
|
|
9
|
-
export * from "./fluidErrorBase";
|
|
10
|
-
export * from "./logger";
|
|
11
|
-
export * from "./mockLogger";
|
|
12
|
-
export * from "./thresholdCounter";
|
|
13
|
-
export * from "./utils";
|
|
14
|
-
export * from "./sampledTelemetryHelper";
|
|
15
5
|
export {
|
|
16
6
|
MonitoringContext,
|
|
17
7
|
IConfigProviderBase,
|
|
@@ -21,3 +11,41 @@ export {
|
|
|
21
11
|
ConfigTypes,
|
|
22
12
|
loggerToMonitoringContext,
|
|
23
13
|
} from "./config";
|
|
14
|
+
export { DebugLogger } from "./debugLogger";
|
|
15
|
+
export {
|
|
16
|
+
extractLogSafeErrorProperties,
|
|
17
|
+
generateErrorWithStack,
|
|
18
|
+
generateStack,
|
|
19
|
+
getCircularReplacer,
|
|
20
|
+
IFluidErrorAnnotations,
|
|
21
|
+
isExternalError,
|
|
22
|
+
isILoggingError,
|
|
23
|
+
isTaggedTelemetryPropertyValue,
|
|
24
|
+
LoggingError,
|
|
25
|
+
NORMALIZED_ERROR_TYPE,
|
|
26
|
+
normalizeError,
|
|
27
|
+
wrapError,
|
|
28
|
+
wrapErrorAndLog,
|
|
29
|
+
} from "./errorLogging";
|
|
30
|
+
export { EventEmitterWithErrorHandling } from "./eventEmitterWithErrorHandling";
|
|
31
|
+
export { connectedEventName, disconnectedEventName, raiseConnectedEvent, safeRaiseEvent } from "./events";
|
|
32
|
+
export { hasErrorInstanceId, IFluidErrorBase, isFluidError, isValidLegacyError } from "./fluidErrorBase";
|
|
33
|
+
export {
|
|
34
|
+
BaseTelemetryNullLogger,
|
|
35
|
+
ChildLogger,
|
|
36
|
+
IPerformanceEventMarkers,
|
|
37
|
+
ITelemetryLoggerPropertyBag,
|
|
38
|
+
ITelemetryLoggerPropertyBags,
|
|
39
|
+
MultiSinkLogger,
|
|
40
|
+
PerformanceEvent,
|
|
41
|
+
TaggedLoggerAdapter,
|
|
42
|
+
TelemetryDataTag,
|
|
43
|
+
TelemetryEventPropertyTypes,
|
|
44
|
+
TelemetryLogger,
|
|
45
|
+
TelemetryNullLogger,
|
|
46
|
+
TelemetryUTLogger,
|
|
47
|
+
} from "./logger";
|
|
48
|
+
export { MockLogger } from "./mockLogger";
|
|
49
|
+
export { ThresholdCounter } from "./thresholdCounter";
|
|
50
|
+
export { SampledTelemetryHelper } from "./sampledTelemetryHelper";
|
|
51
|
+
export { logIfFalse } from "./utils";
|
package/src/packageVersion.ts
CHANGED