@fluidframework/telemetry-utils 2.103.0 → 2.110.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.
@@ -3,7 +3,12 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import type { ITelemetryBaseLogger, LogLevel, Tagged } from "@fluidframework/core-interfaces";
6
+ import type {
7
+ ErasedType,
8
+ ITelemetryBaseLogger,
9
+ LogLevel,
10
+ Tagged,
11
+ } from "@fluidframework/core-interfaces";
7
12
 
8
13
  /**
9
14
  * The categories FF uses when instrumenting the code.
@@ -13,9 +18,8 @@ import type { ITelemetryBaseLogger, LogLevel, Tagged } from "@fluidframework/cor
13
18
  * error - Error log event, ideally 0 of these are logged during a session
14
19
  *
15
20
  * 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.
18
- * @legacy @beta
21
+ *
22
+ * @internal
19
23
  */
20
24
  export type TelemetryEventCategory = "generic" | "error" | "performance";
21
25
 
@@ -67,9 +71,7 @@ export interface ITelemetryEventExt extends ITelemetryPropertiesExt {
67
71
  /**
68
72
  * Informational (non-error) telemetry event
69
73
  * @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.
72
- * @legacy @beta
74
+ * @internal
73
75
  */
74
76
  export interface ITelemetryGenericEventExt extends ITelemetryPropertiesExt {
75
77
  /**
@@ -87,9 +89,7 @@ export interface ITelemetryGenericEventExt extends ITelemetryPropertiesExt {
87
89
  /**
88
90
  * Error telemetry event.
89
91
  * @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.
92
- * @legacy @beta
92
+ * @internal
93
93
  */
94
94
  export interface ITelemetryErrorEventExt extends ITelemetryPropertiesExt {
95
95
  /**
@@ -101,9 +101,7 @@ export interface ITelemetryErrorEventExt extends ITelemetryPropertiesExt {
101
101
  /**
102
102
  * Performance telemetry event.
103
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.
106
- * @legacy @beta
104
+ * @internal
107
105
  */
108
106
  export interface ITelemetryPerformanceEventExt extends ITelemetryGenericEventExt {
109
107
  /**
@@ -113,15 +111,9 @@ export interface ITelemetryPerformanceEventExt extends ITelemetryGenericEventExt
113
111
  }
114
112
 
115
113
  /**
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.
114
+ * Handle for an extended {@link @fluidframework/core-interfaces#ITelemetryBaseLogger} used internally within the Fluid Framework.
123
115
  *
124
- * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for deprecation and breaking change details.
116
+ * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for past method deprecation and breaking change details.
125
117
  *
126
118
  * @privateRemarks
127
119
  * External APIs taking in an `ITelemetryLoggerExt` ideally should be updated to
@@ -131,46 +123,9 @@ export interface ITelemetryPerformanceEventExt extends ITelemetryGenericEventExt
131
123
  * @legacy
132
124
  * @beta
133
125
  */
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. If undefined, the logLevel should be treated as {@link @fluidframework/core-interfaces#LogLevel.essential}.
140
- * If the event's category is `error`, the logLevel will be upgraded to {@link @fluidframework/core-interfaces#LogLevel.essential}.
141
- * @deprecated This method is being removed without a replacement.
142
- * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details.
143
- */
144
- sendTelemetryEvent(
145
- event: ITelemetryGenericEventExt,
146
- error?: unknown,
147
- logLevel?: typeof LogLevel.verbose | typeof LogLevel.info,
148
- ): void;
149
-
150
- /**
151
- * Send an error telemetry event.
152
- * @param event - Event to send.
153
- * @param error - Optional error object to log.
154
- * @deprecated This method is being removed without a replacement.
155
- * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details.
156
- */
157
- sendErrorEvent(event: ITelemetryErrorEventExt, error?: unknown): void;
158
-
159
- /**
160
- * Send a performance telemetry event.
161
- * @param event - Event to send
162
- * @param error - Optional error object to log.
163
- * @param logLevel - Optional level of the log. If undefined, the logLevel should be treated as {@link @fluidframework/core-interfaces#LogLevel.essential}.
164
- * If the event's category is `error`, the logLevel will be upgraded to {@link @fluidframework/core-interfaces#LogLevel.essential}.
165
- * @deprecated This method is being removed without a replacement.
166
- * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details.
167
- */
168
- sendPerformanceEvent(
169
- event: ITelemetryPerformanceEventExt,
170
- error?: unknown,
171
- logLevel?: typeof LogLevel.verbose | typeof LogLevel.info,
172
- ): void;
173
- }
126
+ export interface ITelemetryLoggerExt
127
+ extends ErasedType<"TelemetryLoggerExt">,
128
+ ITelemetryBaseLogger {}
174
129
 
175
130
  /**
176
131
  * An extended {@link @fluidframework/core-interfaces#ITelemetryBaseLogger} which allows for more lenient event types.
package/tsconfig.json CHANGED
@@ -4,7 +4,6 @@
4
4
  "compilerOptions": {
5
5
  "rootDir": "./src",
6
6
  "outDir": "./lib",
7
- "exactOptionalPropertyTypes": false,
8
7
  },
9
8
  "include": ["src/**/*"],
10
9
  }