@fluidframework/telemetry-utils 2.0.0-dev-rc.3.0.0.254513 → 2.0.0-dev-rc.3.0.0.254674
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/alpha.d.ts +26 -0
- package/dist/beta.d.ts +19 -0
- package/dist/public.d.ts +19 -0
- package/lib/alpha.d.ts +26 -0
- package/lib/beta.d.ts +19 -0
- package/lib/public.d.ts +19 -0
- package/package.json +13 -25
- package/api-extractor-cjs.json +0 -8
- package/dist/telemetry-utils-alpha.d.ts +0 -282
- package/dist/telemetry-utils-beta.d.ts +0 -239
- package/dist/telemetry-utils-public.d.ts +0 -239
- package/dist/telemetry-utils-untrimmed.d.ts +0 -1077
- package/dist/tsdoc-metadata.json +0 -11
- package/lib/telemetry-utils-alpha.d.ts +0 -282
- package/lib/telemetry-utils-beta.d.ts +0 -239
- package/lib/telemetry-utils-public.d.ts +0 -239
- package/lib/telemetry-utils-untrimmed.d.ts +0 -1077
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
|
10
|
+
export {
|
|
11
|
+
// public APIs
|
|
12
|
+
ITelemetryErrorEventExt,
|
|
13
|
+
ITelemetryGenericEventExt,
|
|
14
|
+
ITelemetryLoggerExt,
|
|
15
|
+
ITelemetryPerformanceEventExt,
|
|
16
|
+
ITelemetryPropertiesExt,
|
|
17
|
+
TelemetryEventCategory,
|
|
18
|
+
TelemetryEventPropertyTypeExt,
|
|
19
|
+
|
|
20
|
+
// alpha APIs
|
|
21
|
+
EventEmitterWithErrorHandling,
|
|
22
|
+
ITelemetryLoggerPropertyBag,
|
|
23
|
+
ITelemetryLoggerPropertyBags,
|
|
24
|
+
TelemetryEventPropertyTypes,
|
|
25
|
+
createChildLogger
|
|
26
|
+
} from "./index.js";
|
package/dist/beta.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
|
10
|
+
export {
|
|
11
|
+
// public APIs
|
|
12
|
+
ITelemetryErrorEventExt,
|
|
13
|
+
ITelemetryGenericEventExt,
|
|
14
|
+
ITelemetryLoggerExt,
|
|
15
|
+
ITelemetryPerformanceEventExt,
|
|
16
|
+
ITelemetryPropertiesExt,
|
|
17
|
+
TelemetryEventCategory,
|
|
18
|
+
TelemetryEventPropertyTypeExt
|
|
19
|
+
} from "./index.js";
|
package/dist/public.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
|
10
|
+
export {
|
|
11
|
+
// public APIs
|
|
12
|
+
ITelemetryErrorEventExt,
|
|
13
|
+
ITelemetryGenericEventExt,
|
|
14
|
+
ITelemetryLoggerExt,
|
|
15
|
+
ITelemetryPerformanceEventExt,
|
|
16
|
+
ITelemetryPropertiesExt,
|
|
17
|
+
TelemetryEventCategory,
|
|
18
|
+
TelemetryEventPropertyTypeExt
|
|
19
|
+
} from "./index.js";
|
package/lib/alpha.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
|
10
|
+
export {
|
|
11
|
+
// public APIs
|
|
12
|
+
ITelemetryErrorEventExt,
|
|
13
|
+
ITelemetryGenericEventExt,
|
|
14
|
+
ITelemetryLoggerExt,
|
|
15
|
+
ITelemetryPerformanceEventExt,
|
|
16
|
+
ITelemetryPropertiesExt,
|
|
17
|
+
TelemetryEventCategory,
|
|
18
|
+
TelemetryEventPropertyTypeExt,
|
|
19
|
+
|
|
20
|
+
// alpha APIs
|
|
21
|
+
EventEmitterWithErrorHandling,
|
|
22
|
+
ITelemetryLoggerPropertyBag,
|
|
23
|
+
ITelemetryLoggerPropertyBags,
|
|
24
|
+
TelemetryEventPropertyTypes,
|
|
25
|
+
createChildLogger
|
|
26
|
+
} from "./index.js";
|
package/lib/beta.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
|
10
|
+
export {
|
|
11
|
+
// public APIs
|
|
12
|
+
ITelemetryErrorEventExt,
|
|
13
|
+
ITelemetryGenericEventExt,
|
|
14
|
+
ITelemetryLoggerExt,
|
|
15
|
+
ITelemetryPerformanceEventExt,
|
|
16
|
+
ITelemetryPropertiesExt,
|
|
17
|
+
TelemetryEventCategory,
|
|
18
|
+
TelemetryEventPropertyTypeExt
|
|
19
|
+
} from "./index.js";
|
package/lib/public.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
|
10
|
+
export {
|
|
11
|
+
// public APIs
|
|
12
|
+
ITelemetryErrorEventExt,
|
|
13
|
+
ITelemetryGenericEventExt,
|
|
14
|
+
ITelemetryLoggerExt,
|
|
15
|
+
ITelemetryPerformanceEventExt,
|
|
16
|
+
ITelemetryPropertiesExt,
|
|
17
|
+
TelemetryEventCategory,
|
|
18
|
+
TelemetryEventPropertyTypeExt
|
|
19
|
+
} from "./index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/telemetry-utils",
|
|
3
|
-
"version": "2.0.0-dev-rc.3.0.0.
|
|
3
|
+
"version": "2.0.0-dev-rc.3.0.0.254674",
|
|
4
4
|
"description": "Collection of telemetry relates utilities for Fluid",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -15,21 +15,21 @@
|
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
17
|
"import": {
|
|
18
|
-
"types": "./lib/
|
|
18
|
+
"types": "./lib/public.d.ts",
|
|
19
19
|
"default": "./lib/index.js"
|
|
20
20
|
},
|
|
21
21
|
"require": {
|
|
22
|
-
"types": "./dist/
|
|
22
|
+
"types": "./dist/public.d.ts",
|
|
23
23
|
"default": "./dist/index.js"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"./alpha": {
|
|
27
27
|
"import": {
|
|
28
|
-
"types": "./lib/
|
|
28
|
+
"types": "./lib/alpha.d.ts",
|
|
29
29
|
"default": "./lib/index.js"
|
|
30
30
|
},
|
|
31
31
|
"require": {
|
|
32
|
-
"types": "./dist/
|
|
32
|
+
"types": "./dist/alpha.d.ts",
|
|
33
33
|
"default": "./dist/index.js"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"main": "dist/index.js",
|
|
48
|
-
"types": "./dist/
|
|
48
|
+
"types": "./dist/public.d.ts",
|
|
49
49
|
"c8": {
|
|
50
50
|
"all": true,
|
|
51
51
|
"cache-dir": "nyc/.cache",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"temp-directory": "nyc/.nyc_output"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@fluid-internal/client-utils": "2.0.0-dev-rc.3.0.0.
|
|
71
|
-
"@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.
|
|
72
|
-
"@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.
|
|
70
|
+
"@fluid-internal/client-utils": "2.0.0-dev-rc.3.0.0.254674",
|
|
71
|
+
"@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.254674",
|
|
72
|
+
"@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.254674",
|
|
73
73
|
"@fluidframework/protocol-definitions": "^3.2.0",
|
|
74
74
|
"debug": "^4.3.4",
|
|
75
75
|
"uuid": "^9.0.0"
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@arethetypeswrong/cli": "^0.15.2",
|
|
79
79
|
"@biomejs/biome": "^1.6.2",
|
|
80
|
-
"@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.
|
|
80
|
+
"@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.254674",
|
|
81
81
|
"@fluid-tools/build-cli": "^0.35.0",
|
|
82
82
|
"@fluidframework/build-common": "^2.0.3",
|
|
83
83
|
"@fluidframework/build-tools": "^0.35.0",
|
|
@@ -102,18 +102,6 @@
|
|
|
102
102
|
"sinon": "^17.0.1",
|
|
103
103
|
"typescript": "~5.1.6"
|
|
104
104
|
},
|
|
105
|
-
"fluidBuild": {
|
|
106
|
-
"tasks": {
|
|
107
|
-
"build:docs": {
|
|
108
|
-
"dependsOn": [
|
|
109
|
-
"...",
|
|
110
|
-
"api-extractor:commonjs",
|
|
111
|
-
"api-extractor:esnext"
|
|
112
|
-
],
|
|
113
|
-
"script": false
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
105
|
"typeValidation": {
|
|
118
106
|
"broken": {
|
|
119
107
|
"RemovedInterfaceDeclaration_IConfigProviderBase": {
|
|
@@ -136,12 +124,12 @@
|
|
|
136
124
|
},
|
|
137
125
|
"scripts": {
|
|
138
126
|
"api": "fluid-build . --task api",
|
|
139
|
-
"api-extractor:commonjs": "
|
|
140
|
-
"api-extractor:esnext": "
|
|
127
|
+
"api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
|
|
128
|
+
"api-extractor:esnext": "flub generate entrypoints --outDir ./lib",
|
|
141
129
|
"build": "fluid-build . --task build",
|
|
142
130
|
"build:commonjs": "fluid-build . --task commonjs",
|
|
143
131
|
"build:compile": "fluid-build . --task compile",
|
|
144
|
-
"build:docs": "
|
|
132
|
+
"build:docs": "api-extractor run --local",
|
|
145
133
|
"build:esnext": "tsc --project ./tsconfig.json",
|
|
146
134
|
"build:test": "npm run build:test:esm && npm run build:test:cjs",
|
|
147
135
|
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
|
package/api-extractor-cjs.json
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
-
"extends": "../../../common/build/build-common/api-extractor-base.cjs.primary.json",
|
|
4
|
-
// CJS is actually secondary; so, no report.
|
|
5
|
-
"apiReport": {
|
|
6
|
-
"enabled": false
|
|
7
|
-
}
|
|
8
|
-
}
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { ConfigTypes } from '@fluidframework/core-interfaces';
|
|
2
|
-
import type { EventEmitter } from '@fluid-internal/client-utils';
|
|
3
|
-
import { EventEmitterEventType } from '@fluid-internal/client-utils';
|
|
4
|
-
import { IConfigProviderBase } from '@fluidframework/core-interfaces';
|
|
5
|
-
import type { IDisposable } from '@fluidframework/core-interfaces';
|
|
6
|
-
import { IErrorBase } from '@fluidframework/core-interfaces';
|
|
7
|
-
import { IEvent } from '@fluidframework/core-interfaces';
|
|
8
|
-
import { IGenericError } from '@fluidframework/core-interfaces/internal';
|
|
9
|
-
import type { ILoggingError } from '@fluidframework/core-interfaces/internal';
|
|
10
|
-
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
11
|
-
import { ITelemetryBaseEvent } from '@fluidframework/core-interfaces';
|
|
12
|
-
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
13
|
-
import { ITelemetryBaseProperties } from '@fluidframework/core-interfaces';
|
|
14
|
-
import { IUsageError } from '@fluidframework/core-interfaces/internal';
|
|
15
|
-
import { Lazy } from '@fluidframework/core-utils/internal';
|
|
16
|
-
import { LogLevel } from '@fluidframework/core-interfaces';
|
|
17
|
-
import { Tagged } from '@fluidframework/core-interfaces';
|
|
18
|
-
import { TelemetryBaseEventPropertyType } from '@fluidframework/core-interfaces';
|
|
19
|
-
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
20
|
-
|
|
21
|
-
/* Excluded from this release type: connectedEventName */
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Create a child logger based on the provided props object.
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* Passing in no props object (i.e. undefined) will return a logger that is effectively a no-op.
|
|
28
|
-
*
|
|
29
|
-
* @param props - logger is the base logger the child will log to after it's processing, namespace will be prefixed to all event names, properties are default properties that will be applied events.
|
|
30
|
-
*
|
|
31
|
-
* @alpha
|
|
32
|
-
*/
|
|
33
|
-
export declare function createChildLogger(props?: {
|
|
34
|
-
logger?: ITelemetryBaseLogger;
|
|
35
|
-
namespace?: string;
|
|
36
|
-
properties?: ITelemetryLoggerPropertyBags;
|
|
37
|
-
}): ITelemetryLoggerExt;
|
|
38
|
-
|
|
39
|
-
/* Excluded from this release type: createChildMonitoringContext */
|
|
40
|
-
|
|
41
|
-
/* Excluded from this release type: createMultiSinkLogger */
|
|
42
|
-
|
|
43
|
-
/* Excluded from this release type: createSampledLogger */
|
|
44
|
-
|
|
45
|
-
/* Excluded from this release type: DataCorruptionError */
|
|
46
|
-
|
|
47
|
-
/* Excluded from this release type: DataProcessingError */
|
|
48
|
-
|
|
49
|
-
/* Excluded from this release type: disconnectedEventName */
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Event Emitter helper class
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* Any exceptions thrown by listeners will be caught and raised through "error" event.
|
|
56
|
-
* Any exception thrown by "error" listeners will propagate to the caller.
|
|
57
|
-
* @privateRemarks
|
|
58
|
-
* This probably doesn't belong in this package, as it is not telemetry-specific, and is really only intended for internal fluid-framework use.
|
|
59
|
-
* We should consider moving it to the `core-utils` package.
|
|
60
|
-
* @alpha
|
|
61
|
-
*/
|
|
62
|
-
export declare class EventEmitterWithErrorHandling<TEvent extends IEvent = IEvent> extends TypedEventEmitter<TEvent> {
|
|
63
|
-
private readonly errorHandler;
|
|
64
|
-
constructor(errorHandler: (eventName: EventEmitterEventType, error: any) => void);
|
|
65
|
-
emit(event: EventEmitterEventType, ...args: unknown[]): boolean;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Excluded from this release type: eventNamespaceSeparator */
|
|
69
|
-
|
|
70
|
-
/* Excluded from this release type: extractLogSafeErrorProperties */
|
|
71
|
-
|
|
72
|
-
/* Excluded from this release type: extractSafePropertiesFromMessage */
|
|
73
|
-
|
|
74
|
-
/* Excluded from this release type: formatTick */
|
|
75
|
-
|
|
76
|
-
/* Excluded from this release type: generateErrorWithStack */
|
|
77
|
-
|
|
78
|
-
/* Excluded from this release type: generateStack */
|
|
79
|
-
|
|
80
|
-
/* Excluded from this release type: GenericError */
|
|
81
|
-
|
|
82
|
-
/* Excluded from this release type: getCircularReplacer */
|
|
83
|
-
|
|
84
|
-
/* Excluded from this release type: hasErrorInstanceId */
|
|
85
|
-
|
|
86
|
-
/* Excluded from this release type: IConfigProvider */
|
|
87
|
-
|
|
88
|
-
/* Excluded from this release type: IEventSampler */
|
|
89
|
-
|
|
90
|
-
/* Excluded from this release type: IFluidErrorAnnotations */
|
|
91
|
-
|
|
92
|
-
/* Excluded from this release type: IFluidErrorBase */
|
|
93
|
-
|
|
94
|
-
/* Excluded from this release type: IGenericError */
|
|
95
|
-
|
|
96
|
-
/* Excluded from this release type: ILoggingError */
|
|
97
|
-
|
|
98
|
-
/* Excluded from this release type: IPerformanceEventMarkers */
|
|
99
|
-
|
|
100
|
-
/* Excluded from this release type: ISampledTelemetryLogger */
|
|
101
|
-
|
|
102
|
-
/* Excluded from this release type: isExternalError */
|
|
103
|
-
|
|
104
|
-
/* Excluded from this release type: isFluidError */
|
|
105
|
-
|
|
106
|
-
/* Excluded from this release type: isILoggingError */
|
|
107
|
-
|
|
108
|
-
/* Excluded from this release type: isTaggedTelemetryPropertyValue */
|
|
109
|
-
|
|
110
|
-
/* Excluded from this release type: isValidLegacyError */
|
|
111
|
-
|
|
112
|
-
/* Excluded from this release type: ITaggedTelemetryPropertyTypeExt */
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Error telemetry event.
|
|
116
|
-
* @remarks Maps to category = "error"
|
|
117
|
-
* @public
|
|
118
|
-
*/
|
|
119
|
-
export declare interface ITelemetryErrorEventExt extends ITelemetryPropertiesExt {
|
|
120
|
-
eventName: string;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/* Excluded from this release type: ITelemetryEventExt */
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Informational (non-error) telemetry event
|
|
127
|
-
* @remarks Maps to category = "generic"
|
|
128
|
-
* @public
|
|
129
|
-
*/
|
|
130
|
-
export declare interface ITelemetryGenericEventExt extends ITelemetryPropertiesExt {
|
|
131
|
-
eventName: string;
|
|
132
|
-
category?: TelemetryEventCategory;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* An extended {@link @fluidframework/core-interfaces#ITelemetryBaseLogger} which allows for more lenient event types.
|
|
137
|
-
*
|
|
138
|
-
* @remarks
|
|
139
|
-
* This interface is meant to be used internally within the Fluid Framework,
|
|
140
|
-
* and `ITelemetryBaseLogger` should be used when loggers are passed between layers.
|
|
141
|
-
* @public
|
|
142
|
-
*/
|
|
143
|
-
export declare interface ITelemetryLoggerExt extends ITelemetryBaseLogger {
|
|
144
|
-
/**
|
|
145
|
-
* Send information telemetry event
|
|
146
|
-
* @param event - Event to send
|
|
147
|
-
* @param error - optional error object to log
|
|
148
|
-
* @param logLevel - optional level of the log.
|
|
149
|
-
*/
|
|
150
|
-
sendTelemetryEvent(event: ITelemetryGenericEventExt, error?: unknown, logLevel?: typeof LogLevel.verbose | typeof LogLevel.default): void;
|
|
151
|
-
/**
|
|
152
|
-
* Send error telemetry event
|
|
153
|
-
* @param event - Event to send
|
|
154
|
-
* @param error - optional error object to log
|
|
155
|
-
*/
|
|
156
|
-
sendErrorEvent(event: ITelemetryErrorEventExt, error?: unknown): void;
|
|
157
|
-
/**
|
|
158
|
-
* Send performance telemetry event
|
|
159
|
-
* @param event - Event to send
|
|
160
|
-
* @param error - optional error object to log
|
|
161
|
-
* @param logLevel - optional level of the log.
|
|
162
|
-
*/
|
|
163
|
-
sendPerformanceEvent(event: ITelemetryPerformanceEventExt, error?: unknown, logLevel?: typeof LogLevel.verbose | typeof LogLevel.default): void;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* @alpha
|
|
168
|
-
*/
|
|
169
|
-
export declare interface ITelemetryLoggerPropertyBag {
|
|
170
|
-
[index: string]: TelemetryEventPropertyTypes | (() => TelemetryEventPropertyTypes);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @alpha
|
|
175
|
-
*/
|
|
176
|
-
export declare interface ITelemetryLoggerPropertyBags {
|
|
177
|
-
all?: ITelemetryLoggerPropertyBag;
|
|
178
|
-
error?: ITelemetryLoggerPropertyBag;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Performance telemetry event.
|
|
183
|
-
* @remarks Maps to category = "performance"
|
|
184
|
-
* @public
|
|
185
|
-
*/
|
|
186
|
-
export declare interface ITelemetryPerformanceEventExt extends ITelemetryGenericEventExt {
|
|
187
|
-
duration?: number;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* JSON-serializable properties, which will be logged with telemetry.
|
|
192
|
-
* @public
|
|
193
|
-
*/
|
|
194
|
-
export declare interface ITelemetryPropertiesExt {
|
|
195
|
-
[index: string]: TelemetryEventPropertyTypeExt | Tagged<TelemetryEventPropertyTypeExt>;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* Excluded from this release type: IUsageError */
|
|
199
|
-
|
|
200
|
-
/* Excluded from this release type: Lazy */
|
|
201
|
-
|
|
202
|
-
/* Excluded from this release type: loggerToMonitoringContext */
|
|
203
|
-
|
|
204
|
-
/* Excluded from this release type: LoggingError */
|
|
205
|
-
|
|
206
|
-
/* Excluded from this release type: mixinMonitoringContext */
|
|
207
|
-
|
|
208
|
-
/* Excluded from this release type: MockLogger */
|
|
209
|
-
|
|
210
|
-
/* Excluded from this release type: MonitoringContext */
|
|
211
|
-
|
|
212
|
-
/* Excluded from this release type: MultiSinkLoggerProperties */
|
|
213
|
-
|
|
214
|
-
/* Excluded from this release type: NORMALIZED_ERROR_TYPE */
|
|
215
|
-
|
|
216
|
-
/* Excluded from this release type: normalizeError */
|
|
217
|
-
|
|
218
|
-
/* Excluded from this release type: numberFromString */
|
|
219
|
-
|
|
220
|
-
/* Excluded from this release type: overwriteStack */
|
|
221
|
-
|
|
222
|
-
/* Excluded from this release type: PerformanceEvent */
|
|
223
|
-
|
|
224
|
-
/* Excluded from this release type: raiseConnectedEvent */
|
|
225
|
-
|
|
226
|
-
/* Excluded from this release type: safeRaiseEvent */
|
|
227
|
-
|
|
228
|
-
/* Excluded from this release type: SampledTelemetryHelper */
|
|
229
|
-
|
|
230
|
-
/* Excluded from this release type: sessionStorageConfigProvider */
|
|
231
|
-
|
|
232
|
-
/* Excluded from this release type: tagCodeArtifacts */
|
|
233
|
-
|
|
234
|
-
/* Excluded from this release type: tagData */
|
|
235
|
-
|
|
236
|
-
/* Excluded from this release type: TaggedLoggerAdapter */
|
|
237
|
-
|
|
238
|
-
/* Excluded from this release type: TelemetryDataTag */
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* The categories FF uses when instrumenting the code.
|
|
242
|
-
*
|
|
243
|
-
* generic - Informational log event
|
|
244
|
-
*
|
|
245
|
-
* error - Error log event, ideally 0 of these are logged during a session
|
|
246
|
-
*
|
|
247
|
-
* performance - Includes duration, and often has _start, _end, or _cancel suffixes for activity tracking
|
|
248
|
-
* @public
|
|
249
|
-
*/
|
|
250
|
-
export declare type TelemetryEventCategory = "generic" | "error" | "performance";
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Property types that can be logged.
|
|
254
|
-
*
|
|
255
|
-
* @remarks
|
|
256
|
-
* Includes extra types beyond {@link @fluidframework/core-interfaces#TelemetryBaseEventPropertyType}, which must be
|
|
257
|
-
* converted before sending to a base logger.
|
|
258
|
-
* @public
|
|
259
|
-
*/
|
|
260
|
-
export declare type TelemetryEventPropertyTypeExt = string | number | boolean | undefined | (string | number | boolean)[] | {
|
|
261
|
-
[key: string]: // Flat objects can have the same properties as the event itself
|
|
262
|
-
string | number | boolean | undefined | (string | number | boolean)[];
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* @alpha
|
|
267
|
-
*/
|
|
268
|
-
export declare type TelemetryEventPropertyTypes = ITelemetryBaseProperties[string];
|
|
269
|
-
|
|
270
|
-
/* Excluded from this release type: ThresholdCounter */
|
|
271
|
-
|
|
272
|
-
/* Excluded from this release type: UsageError */
|
|
273
|
-
|
|
274
|
-
/* Excluded from this release type: validatePrecondition */
|
|
275
|
-
|
|
276
|
-
/* Excluded from this release type: wrapConfigProviderWithDefaults */
|
|
277
|
-
|
|
278
|
-
/* Excluded from this release type: wrapError */
|
|
279
|
-
|
|
280
|
-
/* Excluded from this release type: wrapErrorAndLog */
|
|
281
|
-
|
|
282
|
-
export { }
|