@fluidframework/telemetry-utils 2.93.0 → 2.100.1

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 (129) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/DEV.md +33 -0
  3. package/api-extractor/api-extractor-lint-api-bundle.json +5 -0
  4. package/api-extractor/api-extractor-lint-bundle.json +1 -1
  5. package/api-extractor.json +2 -1
  6. package/api-report/telemetry-utils.legacy.beta.api.md +8 -5
  7. package/dist/api.d.ts +26 -0
  8. package/dist/api.d.ts.map +1 -0
  9. package/dist/api.js +40 -0
  10. package/dist/api.js.map +1 -0
  11. package/dist/config.d.ts +6 -6
  12. package/dist/config.d.ts.map +1 -1
  13. package/dist/config.js +2 -0
  14. package/dist/config.js.map +1 -1
  15. package/dist/errorLogging.d.ts +2 -2
  16. package/dist/errorLogging.d.ts.map +1 -1
  17. package/dist/errorLogging.js.map +1 -1
  18. package/dist/events.d.ts +3 -3
  19. package/dist/events.d.ts.map +1 -1
  20. package/dist/events.js.map +1 -1
  21. package/dist/{index.d.ts → internal.d.ts} +16 -4
  22. package/dist/internal.d.ts.map +1 -0
  23. package/dist/{index.js → internal.js} +22 -5
  24. package/dist/internal.js.map +1 -0
  25. package/dist/legacy.d.ts +2 -2
  26. package/dist/logger.d.ts +45 -10
  27. package/dist/logger.d.ts.map +1 -1
  28. package/dist/logger.js +43 -5
  29. package/dist/logger.js.map +1 -1
  30. package/dist/main.d.ts +8 -0
  31. package/dist/main.d.ts.map +1 -0
  32. package/dist/main.js +13 -0
  33. package/dist/main.js.map +1 -0
  34. package/dist/mockLogger.d.ts +5 -4
  35. package/dist/mockLogger.d.ts.map +1 -1
  36. package/dist/mockLogger.js.map +1 -1
  37. package/dist/public.d.ts +1 -1
  38. package/dist/sampledTelemetryHelper.d.ts +2 -2
  39. package/dist/sampledTelemetryHelper.d.ts.map +1 -1
  40. package/dist/sampledTelemetryHelper.js.map +1 -1
  41. package/dist/telemetryEventBatcher.d.ts +2 -2
  42. package/dist/telemetryEventBatcher.d.ts.map +1 -1
  43. package/dist/telemetryEventBatcher.js.map +1 -1
  44. package/dist/telemetryTypes.d.ts +58 -3
  45. package/dist/telemetryTypes.d.ts.map +1 -1
  46. package/dist/telemetryTypes.js.map +1 -1
  47. package/dist/telemetryTypesUndeprecated.d.ts +36 -0
  48. package/dist/telemetryTypesUndeprecated.d.ts.map +1 -0
  49. package/dist/telemetryTypesUndeprecated.js +7 -0
  50. package/dist/telemetryTypesUndeprecated.js.map +1 -0
  51. package/dist/thresholdCounter.d.ts +2 -2
  52. package/dist/thresholdCounter.d.ts.map +1 -1
  53. package/dist/thresholdCounter.js.map +1 -1
  54. package/dist/utils.d.ts +4 -4
  55. package/dist/utils.d.ts.map +1 -1
  56. package/dist/utils.js +1 -1
  57. package/dist/utils.js.map +1 -1
  58. package/internal.d.ts +2 -2
  59. package/legacy.d.ts +1 -1
  60. package/lib/api.d.ts +26 -0
  61. package/lib/api.d.ts.map +1 -0
  62. package/lib/api.js +22 -0
  63. package/lib/api.js.map +1 -0
  64. package/lib/config.d.ts +6 -6
  65. package/lib/config.d.ts.map +1 -1
  66. package/lib/config.js +2 -0
  67. package/lib/config.js.map +1 -1
  68. package/lib/errorLogging.d.ts +2 -2
  69. package/lib/errorLogging.d.ts.map +1 -1
  70. package/lib/errorLogging.js.map +1 -1
  71. package/lib/events.d.ts +3 -3
  72. package/lib/events.d.ts.map +1 -1
  73. package/lib/events.js.map +1 -1
  74. package/lib/{index.d.ts → internal.d.ts} +16 -4
  75. package/lib/internal.d.ts.map +1 -0
  76. package/lib/{index.js → internal.js} +5 -3
  77. package/lib/internal.js.map +1 -0
  78. package/lib/legacy.d.ts +2 -2
  79. package/lib/logger.d.ts +45 -10
  80. package/lib/logger.d.ts.map +1 -1
  81. package/lib/logger.js +40 -4
  82. package/lib/logger.js.map +1 -1
  83. package/lib/main.d.ts +8 -0
  84. package/lib/main.d.ts.map +1 -0
  85. package/lib/main.js +9 -0
  86. package/lib/main.js.map +1 -0
  87. package/lib/mockLogger.d.ts +5 -4
  88. package/lib/mockLogger.d.ts.map +1 -1
  89. package/lib/mockLogger.js.map +1 -1
  90. package/lib/public.d.ts +1 -1
  91. package/lib/sampledTelemetryHelper.d.ts +2 -2
  92. package/lib/sampledTelemetryHelper.d.ts.map +1 -1
  93. package/lib/sampledTelemetryHelper.js.map +1 -1
  94. package/lib/telemetryEventBatcher.d.ts +2 -2
  95. package/lib/telemetryEventBatcher.d.ts.map +1 -1
  96. package/lib/telemetryEventBatcher.js.map +1 -1
  97. package/lib/telemetryTypes.d.ts +58 -3
  98. package/lib/telemetryTypes.d.ts.map +1 -1
  99. package/lib/telemetryTypes.js.map +1 -1
  100. package/lib/telemetryTypesUndeprecated.d.ts +36 -0
  101. package/lib/telemetryTypesUndeprecated.d.ts.map +1 -0
  102. package/lib/telemetryTypesUndeprecated.js +6 -0
  103. package/lib/telemetryTypesUndeprecated.js.map +1 -0
  104. package/lib/thresholdCounter.d.ts +2 -2
  105. package/lib/thresholdCounter.d.ts.map +1 -1
  106. package/lib/thresholdCounter.js.map +1 -1
  107. package/lib/utils.d.ts +4 -4
  108. package/lib/utils.d.ts.map +1 -1
  109. package/lib/utils.js +1 -1
  110. package/lib/utils.js.map +1 -1
  111. package/package.json +21 -19
  112. package/src/api.ts +44 -0
  113. package/src/config.ts +17 -11
  114. package/src/errorLogging.ts +2 -2
  115. package/src/events.ts +3 -3
  116. package/src/{index.ts → internal.ts} +23 -8
  117. package/src/logger.ts +74 -15
  118. package/src/main.ts +19 -0
  119. package/src/mockLogger.ts +4 -4
  120. package/src/sampledTelemetryHelper.ts +3 -3
  121. package/src/telemetryEventBatcher.ts +3 -3
  122. package/src/telemetryTypes.ts +69 -3
  123. package/src/telemetryTypesUndeprecated.ts +51 -0
  124. package/src/thresholdCounter.ts +2 -2
  125. package/src/utils.ts +7 -4
  126. package/dist/index.d.ts.map +0 -1
  127. package/dist/index.js.map +0 -1
  128. package/lib/index.d.ts.map +0 -1
  129. package/lib/index.js.map +0 -1
@@ -13,6 +13,8 @@ import type { ITelemetryBaseLogger, LogLevel, Tagged } from "@fluidframework/cor
13
13
  * error - Error log event, ideally 0 of these are logged during a session
14
14
  *
15
15
  * performance - Includes duration, and often has _start, _end, or _cancel suffixes for activity tracking
16
+ * @deprecated This type is being removed without a replacement.
17
+ * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details.
16
18
  * @legacy @beta
17
19
  */
18
20
  export type TelemetryEventCategory = "generic" | "error" | "performance";
@@ -65,6 +67,8 @@ export interface ITelemetryEventExt extends ITelemetryPropertiesExt {
65
67
  /**
66
68
  * Informational (non-error) telemetry event
67
69
  * @remarks Maps to category = "generic"
70
+ * @deprecated This type is being removed without a replacement.
71
+ * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details.
68
72
  * @legacy @beta
69
73
  */
70
74
  export interface ITelemetryGenericEventExt extends ITelemetryPropertiesExt {
@@ -83,6 +87,8 @@ export interface ITelemetryGenericEventExt extends ITelemetryPropertiesExt {
83
87
  /**
84
88
  * Error telemetry event.
85
89
  * @remarks Maps to category = "error"
90
+ * @deprecated This type is being removed without a replacement.
91
+ * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details.
86
92
  * @legacy @beta
87
93
  */
88
94
  export interface ITelemetryErrorEventExt extends ITelemetryPropertiesExt {
@@ -95,6 +101,8 @@ export interface ITelemetryErrorEventExt extends ITelemetryPropertiesExt {
95
101
  /**
96
102
  * Performance telemetry event.
97
103
  * @remarks Maps to category = "performance"
104
+ * @deprecated This type is being removed without a replacement.
105
+ * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details.
98
106
  * @legacy @beta
99
107
  */
100
108
  export interface ITelemetryPerformanceEventExt extends ITelemetryGenericEventExt {
@@ -104,15 +112,73 @@ export interface ITelemetryPerformanceEventExt extends ITelemetryGenericEventExt
104
112
  duration?: number;
105
113
  }
106
114
 
115
+ /**
116
+ * This is the externally facing type for a FluidFramework internal telemetry logger wrapper.
117
+ *
118
+ * @remarks
119
+ * The methods if this interface are not to be used directly by consumers and are all
120
+ * deprecated to removed without replacement. This type is not deprecated and will
121
+ * transition to an erased type to handle cases where "internal" `ITelemetryLoggerExt`
122
+ * previously leaked out.
123
+ *
124
+ * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for deprecation and breaking change details.
125
+ *
126
+ * @privateRemarks
127
+ * External APIs taking in an `ITelemetryLoggerExt` ideally should be updated to
128
+ * accept `ITelemetryBaseLogger` instead.
129
+ *
130
+ * @sealed
131
+ * @legacy
132
+ * @beta
133
+ */
134
+ export interface ITelemetryLoggerExt extends ITelemetryBaseLogger {
135
+ /**
136
+ * Send an information telemetry event.
137
+ * @param event - Event to send.
138
+ * @param error - Optional error object to log.
139
+ * @param logLevel - Optional level of the log. Default: {@link @fluidframework/core-interfaces#LogLevel.essential}.
140
+ * @deprecated This method is being removed without a replacement.
141
+ * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details.
142
+ */
143
+ sendTelemetryEvent(
144
+ event: ITelemetryGenericEventExt,
145
+ error?: unknown,
146
+ logLevel?: typeof LogLevel.verbose | typeof LogLevel.default,
147
+ ): void;
148
+
149
+ /**
150
+ * Send an error telemetry event.
151
+ * @param event - Event to send.
152
+ * @param error - Optional error object to log.
153
+ * @deprecated This method is being removed without a replacement.
154
+ * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details.
155
+ */
156
+ sendErrorEvent(event: ITelemetryErrorEventExt, error?: unknown): void;
157
+
158
+ /**
159
+ * Send a performance telemetry event.
160
+ * @param event - Event to send
161
+ * @param error - Optional error object to log.
162
+ * @param logLevel - Optional level of the log. Default: {@link @fluidframework/core-interfaces#LogLevel.essential}.
163
+ * @deprecated This method is being removed without a replacement.
164
+ * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details.
165
+ */
166
+ sendPerformanceEvent(
167
+ event: ITelemetryPerformanceEventExt,
168
+ error?: unknown,
169
+ logLevel?: typeof LogLevel.verbose | typeof LogLevel.default,
170
+ ): void;
171
+ }
172
+
107
173
  /**
108
174
  * An extended {@link @fluidframework/core-interfaces#ITelemetryBaseLogger} which allows for more lenient event types.
109
175
  *
110
176
  * @remarks
111
177
  * This interface is meant to be used internally within the Fluid Framework,
112
178
  * and `ITelemetryBaseLogger` should be used when loggers are passed between layers.
113
- * @legacy @beta
179
+ * @internal
114
180
  */
115
- export interface ITelemetryLoggerExt extends ITelemetryBaseLogger {
181
+ export interface TelemetryLoggerExt extends ITelemetryBaseLogger {
116
182
  /**
117
183
  * Send an information telemetry event.
118
184
  * @param event - Event to send.
@@ -136,7 +202,7 @@ export interface ITelemetryLoggerExt extends ITelemetryBaseLogger {
136
202
  * Send a performance telemetry event.
137
203
  * @param event - Event to send
138
204
  * @param error - Optional error object to log.
139
- * @param logLevel - Optional level of the log. Default: {@link @fluidframework/core-interfaces#LogLevel.default}.
205
+ * @param logLevel - Optional level of the log. Default: {@link @fluidframework/core-interfaces#LogLevelConst.default | LogLevel.default}.
140
206
  */
141
207
  sendPerformanceEvent(
142
208
  event: ITelemetryPerformanceEventExt,
@@ -0,0 +1,51 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /* eslint-disable import-x/no-deprecated -- This file specifically works with deprecated types to undeprecate them for internal use */
7
+
8
+ // This file contains exports that "un-deprecate" certain types that we want to
9
+ // continue using internally while exposing deprecated version that will be
10
+ // removed in a future release.
11
+
12
+ // For internal maintenance convenience, we re-export some non-deprecated types
13
+ // from telemetryTypes.ts too.
14
+ export type { TelemetryLoggerExt } from "./telemetryTypes.js";
15
+
16
+ import type {
17
+ ITelemetryGenericEventExt as ExposedITelemetryGenericEventExt,
18
+ ITelemetryErrorEventExt as ExposedITelemetryErrorEventExt,
19
+ ITelemetryPerformanceEventExt as ExposedITelemetryPerformanceEventExt,
20
+ TelemetryEventCategory as ExposedTelemetryEventCategory,
21
+ } from "./telemetryTypes.js";
22
+
23
+ /**
24
+ * Informational (non-error) telemetry event
25
+ * @remarks Maps to category = "generic"
26
+ * @internal
27
+ */
28
+ export type ITelemetryGenericEventExt = ExposedITelemetryGenericEventExt;
29
+ /**
30
+ * Error telemetry event.
31
+ * @remarks Maps to category = "error"
32
+ * @internal
33
+ */
34
+ export type ITelemetryErrorEventExt = ExposedITelemetryErrorEventExt;
35
+ /**
36
+ * Performance telemetry event.
37
+ * @remarks Maps to category = "performance"
38
+ * @internal
39
+ */
40
+ export type ITelemetryPerformanceEventExt = ExposedITelemetryPerformanceEventExt;
41
+ /**
42
+ * The categories FF uses when instrumenting the code.
43
+ *
44
+ * generic - Informational log event
45
+ *
46
+ * error - Error log event, ideally 0 of these are logged during a session
47
+ *
48
+ * performance - Includes duration, and often has _start, _end, or _cancel suffixes for activity tracking
49
+ * @internal
50
+ */
51
+ export type TelemetryEventCategory = ExposedTelemetryEventCategory;
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import type { ITelemetryLoggerExt } from "./telemetryTypes.js";
6
+ import type { TelemetryLoggerExt } from "./telemetryTypes.js";
7
7
 
8
8
  /**
9
9
  * Utility counter which will send event only if the provided value is above a configured threshold.
@@ -13,7 +13,7 @@ import type { ITelemetryLoggerExt } from "./telemetryTypes.js";
13
13
  export class ThresholdCounter {
14
14
  public constructor(
15
15
  private readonly threshold: number,
16
- private readonly logger: ITelemetryLoggerExt,
16
+ private readonly logger: TelemetryLoggerExt,
17
17
  private thresholdMultiple = threshold,
18
18
  ) {}
19
19
 
package/src/utils.ts CHANGED
@@ -6,7 +6,10 @@
6
6
  import type { ITelemetryBaseEvent } from "@fluidframework/core-interfaces";
7
7
 
8
8
  import { loggerToMonitoringContext } from "./config.js";
9
- import type { ITelemetryGenericEventExt, ITelemetryLoggerExt } from "./telemetryTypes.js";
9
+ import type {
10
+ ITelemetryGenericEventExt,
11
+ TelemetryLoggerExt,
12
+ } from "./telemetryTypesUndeprecated.js";
10
13
 
11
14
  /**
12
15
  * An object that contains a callback used in conjunction with the {@link createSampledLogger} utility function to provide custom logic for sampling events.
@@ -25,7 +28,7 @@ export interface IEventSampler {
25
28
  *
26
29
  * @internal
27
30
  */
28
- export interface ISampledTelemetryLogger extends ITelemetryLoggerExt {
31
+ export interface ISampledTelemetryLogger extends TelemetryLoggerExt {
29
32
  /**
30
33
  * Indicates if the feature flag to disable sampling is set.
31
34
  *
@@ -38,7 +41,7 @@ export interface ISampledTelemetryLogger extends ITelemetryLoggerExt {
38
41
  }
39
42
 
40
43
  /**
41
- * Wraps around an existing logger matching the {@link ITelemetryLoggerExt} interface and provides the ability to only log a subset of events using a sampling strategy provided by an ${@link IEventSampler}.
44
+ * Wraps around an existing logger matching the {@link TelemetryLoggerExt} interface and provides the ability to only log a subset of events using a sampling strategy provided by an {@link IEventSampler}.
42
45
  * You can chose to not provide an event sampler which is effectively a no-op, meaning that it will be treated as if the sampler always returns true.
43
46
  *
44
47
  * @remarks
@@ -54,7 +57,7 @@ export interface ISampledTelemetryLogger extends ITelemetryLoggerExt {
54
57
  * @internal
55
58
  */
56
59
  export function createSampledLogger(
57
- logger: ITelemetryLoggerExt,
60
+ logger: TelemetryLoggerExt,
58
61
  eventSampler?: IEventSampler,
59
62
  skipLoggingWhenSamplingIsDisabled?: boolean,
60
63
  ): ISampledTelemetryLogger {
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,4BAA4B,EAC5B,KAAK,iBAAiB,EACtB,4BAA4B,EAC5B,sBAAsB,EACtB,KAAK,eAAe,EACpB,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,EAC7B,KAAK,mBAAmB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,mBAAmB,EACnB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AAmB,OAAA;AACnB,2GAAA,cAAc,OAAA;AAEf,yDAK6B;AAJ5B,uHAAA,kBAAkB,OAAA;AAElB,iHAAA,YAAY,OAAA;AACZ,gIAAA,2BAA2B,OAAA;AAE5B,yCAgBqB;AAfpB,oHAAA,uBAAuB,OAAA;AACvB,8GAAA,iBAAiB,OAAA;AACjB,kHAAA,qBAAqB,OAAA;AACrB,uGAAA,UAAU,OAAA;AAKV,6GAAA,gBAAgB,OAAA;AAChB,6GAAA,gBAAgB,OAAA;AAChB,gHAAA,mBAAmB,OAAA;AACnB,oGAAA,OAAO,OAAA;AACP,6GAAA,gBAAgB,OAAA;AAChB,6GAAA,gBAAgB,OAAA;AAGjB,iDAIyB;AAHxB,oHAAA,mBAAmB,OAAA;AAEnB,2GAAA,UAAU,OAAA;AAEX,6DAAyD;AAAhD,uHAAA,gBAAgB,OAAA;AACzB,yEAKqC;AAJpC,mIAAA,sBAAsB,OAAA;AAKvB,uCAKoB;AAJnB,+GAAA,mBAAmB,OAAA;AAGnB,mGAAA,OAAO,OAAA;AAYR,uEAAmE;AAA1D,iIAAA,qBAAqB,OAAA;AAC9B,6DAA+F;AAAtF,iIAAA,0BAA0B,OAAA;AAAE,iIAAA,0BAA0B,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport {\n\tcreateChildMonitoringContext,\n\ttype MonitoringContext,\n\tsessionStorageConfigProvider,\n\tmixinMonitoringContext,\n\ttype IConfigProvider,\n\tloggerToMonitoringContext,\n\twrapConfigProviderWithDefaults,\n\tcreateConfigBasedOptionsProxy,\n\ttype OptionConfigReaders,\n} from \"./config.js\";\nexport {\n\tDataCorruptionError,\n\tDataProcessingError,\n\textractSafePropertiesFromMessage,\n\tGenericError,\n\tUsageError,\n\tvalidatePrecondition,\n\tLayerIncompatibilityError,\n\ttype MessageLike,\n} from \"./error.js\";\nexport {\n\textractLogSafeErrorProperties,\n\tgenerateErrorWithStack,\n\tgenerateStack,\n\tgetCircularReplacer,\n\ttype IFluidErrorAnnotations,\n\tisExternalError,\n\tisILoggingError,\n\tisTaggedTelemetryPropertyValue,\n\tLoggingError,\n\tNORMALIZED_ERROR_TYPE,\n\tnormalizeError,\n\toverwriteStack,\n\twrapError,\n\twrapErrorAndLog,\n} from \"./errorLogging.js\";\nexport { EventEmitterWithErrorHandling } from \"./eventEmitterWithErrorHandling.js\";\nexport {\n\tconnectedEventName,\n\tdisconnectedEventName,\n\traiseConnectedEvent,\n\tsafeRaiseEvent,\n} from \"./events.js\";\nexport {\n\thasErrorInstanceId,\n\ttype IFluidErrorBase,\n\tisFluidError,\n\tisLayerIncompatibilityError,\n} from \"./fluidErrorBase.js\";\nexport {\n\teventNamespaceSeparator,\n\tcreateChildLogger,\n\tcreateMultiSinkLogger,\n\tformatTick,\n\ttype IPerformanceEventMarkers,\n\ttype ITelemetryLoggerPropertyBag,\n\ttype ITelemetryLoggerPropertyBags,\n\ttype MultiSinkLoggerProperties,\n\tnumberFromString,\n\tPerformanceEvent,\n\tTaggedLoggerAdapter,\n\ttagData,\n\ttagCodeArtifacts,\n\tTelemetryDataTag,\n\ttype TelemetryEventPropertyTypes,\n} from \"./logger.js\";\nexport {\n\tcreateMockLoggerExt,\n\ttype IMockLoggerExt,\n\tMockLogger,\n} from \"./mockLogger.js\";\nexport { ThresholdCounter } from \"./thresholdCounter.js\";\nexport {\n\tSampledTelemetryHelper,\n\ttype CustomMetrics,\n\ttype ICustomData,\n\ttype MeasureReturnType,\n} from \"./sampledTelemetryHelper.js\";\nexport {\n\tcreateSampledLogger,\n\ttype IEventSampler,\n\ttype ISampledTelemetryLogger,\n\tmeasure,\n} from \"./utils.js\";\nexport type {\n\tTelemetryEventPropertyTypeExt,\n\tITelemetryEventExt,\n\tITelemetryGenericEventExt,\n\tITelemetryErrorEventExt,\n\tITelemetryPerformanceEventExt,\n\tITelemetryLoggerExt,\n\tITelemetryPropertiesExt,\n\tTelemetryEventCategory,\n} from \"./telemetryTypes.js\";\nexport { TelemetryEventBatcher } from \"./telemetryEventBatcher.js\";\nexport { allowIncompatibleLayersKey, validateLayerCompatibility } from \"./layerCompatError.js\";\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,4BAA4B,EAC5B,KAAK,iBAAiB,EACtB,4BAA4B,EAC5B,sBAAsB,EACtB,KAAK,eAAe,EACpB,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,EAC7B,KAAK,mBAAmB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,mBAAmB,EACnB,mBAAmB,EACnB,gCAAgC,EAChC,YAAY,EACZ,UAAU,EACV,oBAAoB,EACpB,yBAAyB,EACzB,KAAK,WAAW,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,KAAK,sBAAsB,EAC3B,eAAe,EACf,eAAe,EACf,8BAA8B,EAC9B,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,SAAS,EACT,eAAe,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACN,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,kBAAkB,EAClB,KAAK,eAAe,EACpB,YAAY,EACZ,2BAA2B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,UAAU,EACV,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,2BAA2B,GAChC,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,mBAAmB,EACnB,KAAK,cAAc,EACnB,UAAU,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACN,sBAAsB,EACtB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,iBAAiB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACN,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,OAAO,GACP,MAAM,YAAY,CAAC;AACpB,YAAY,EACX,6BAA6B,EAC7B,kBAAkB,EAClB,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC"}
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,4BAA4B,EAE5B,4BAA4B,EAC5B,sBAAsB,EAEtB,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,GAE7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,mBAAmB,EACnB,mBAAmB,EACnB,gCAAgC,EAChC,YAAY,EACZ,UAAU,EACV,oBAAoB,EACpB,yBAAyB,GAEzB,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EAEnB,eAAe,EACf,eAAe,EACf,8BAA8B,EAC9B,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,SAAS,EACT,eAAe,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACN,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,kBAAkB,EAElB,YAAY,EACZ,2BAA2B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,UAAU,EAKV,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,gBAAgB,EAChB,gBAAgB,GAEhB,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,mBAAmB,EAEnB,UAAU,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACN,sBAAsB,GAItB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACN,mBAAmB,EAGnB,OAAO,GACP,MAAM,YAAY,CAAC;AAWpB,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport {\n\tcreateChildMonitoringContext,\n\ttype MonitoringContext,\n\tsessionStorageConfigProvider,\n\tmixinMonitoringContext,\n\ttype IConfigProvider,\n\tloggerToMonitoringContext,\n\twrapConfigProviderWithDefaults,\n\tcreateConfigBasedOptionsProxy,\n\ttype OptionConfigReaders,\n} from \"./config.js\";\nexport {\n\tDataCorruptionError,\n\tDataProcessingError,\n\textractSafePropertiesFromMessage,\n\tGenericError,\n\tUsageError,\n\tvalidatePrecondition,\n\tLayerIncompatibilityError,\n\ttype MessageLike,\n} from \"./error.js\";\nexport {\n\textractLogSafeErrorProperties,\n\tgenerateErrorWithStack,\n\tgenerateStack,\n\tgetCircularReplacer,\n\ttype IFluidErrorAnnotations,\n\tisExternalError,\n\tisILoggingError,\n\tisTaggedTelemetryPropertyValue,\n\tLoggingError,\n\tNORMALIZED_ERROR_TYPE,\n\tnormalizeError,\n\toverwriteStack,\n\twrapError,\n\twrapErrorAndLog,\n} from \"./errorLogging.js\";\nexport { EventEmitterWithErrorHandling } from \"./eventEmitterWithErrorHandling.js\";\nexport {\n\tconnectedEventName,\n\tdisconnectedEventName,\n\traiseConnectedEvent,\n\tsafeRaiseEvent,\n} from \"./events.js\";\nexport {\n\thasErrorInstanceId,\n\ttype IFluidErrorBase,\n\tisFluidError,\n\tisLayerIncompatibilityError,\n} from \"./fluidErrorBase.js\";\nexport {\n\teventNamespaceSeparator,\n\tcreateChildLogger,\n\tcreateMultiSinkLogger,\n\tformatTick,\n\ttype IPerformanceEventMarkers,\n\ttype ITelemetryLoggerPropertyBag,\n\ttype ITelemetryLoggerPropertyBags,\n\ttype MultiSinkLoggerProperties,\n\tnumberFromString,\n\tPerformanceEvent,\n\tTaggedLoggerAdapter,\n\ttagData,\n\ttagCodeArtifacts,\n\tTelemetryDataTag,\n\ttype TelemetryEventPropertyTypes,\n} from \"./logger.js\";\nexport {\n\tcreateMockLoggerExt,\n\ttype IMockLoggerExt,\n\tMockLogger,\n} from \"./mockLogger.js\";\nexport { ThresholdCounter } from \"./thresholdCounter.js\";\nexport {\n\tSampledTelemetryHelper,\n\ttype CustomMetrics,\n\ttype ICustomData,\n\ttype MeasureReturnType,\n} from \"./sampledTelemetryHelper.js\";\nexport {\n\tcreateSampledLogger,\n\ttype IEventSampler,\n\ttype ISampledTelemetryLogger,\n\tmeasure,\n} from \"./utils.js\";\nexport type {\n\tTelemetryEventPropertyTypeExt,\n\tITelemetryEventExt,\n\tITelemetryGenericEventExt,\n\tITelemetryErrorEventExt,\n\tITelemetryPerformanceEventExt,\n\tITelemetryLoggerExt,\n\tITelemetryPropertiesExt,\n\tTelemetryEventCategory,\n} from \"./telemetryTypes.js\";\nexport { TelemetryEventBatcher } from \"./telemetryEventBatcher.js\";\nexport { allowIncompatibleLayersKey, validateLayerCompatibility } from \"./layerCompatError.js\";\n"]}