@fluidframework/datastore 2.0.0-internal.5.3.2 → 2.0.0-internal.5.4.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/CHANGELOG.md +4 -0
- package/dist/channelContext.d.ts.map +1 -1
- package/dist/channelContext.js +14 -34
- package/dist/channelContext.js.map +1 -1
- package/dist/dataStoreRuntime.d.ts +1 -1
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/dataStoreRuntime.js +14 -18
- package/dist/dataStoreRuntime.js.map +1 -1
- package/dist/remoteChannelContext.d.ts.map +1 -1
- package/dist/remoteChannelContext.js +4 -1
- package/dist/remoteChannelContext.js.map +1 -1
- package/lib/channelContext.d.ts.map +1 -1
- package/lib/channelContext.js +15 -35
- package/lib/channelContext.js.map +1 -1
- package/lib/dataStoreRuntime.d.ts +1 -1
- package/lib/dataStoreRuntime.d.ts.map +1 -1
- package/lib/dataStoreRuntime.js +16 -20
- package/lib/dataStoreRuntime.js.map +1 -1
- package/lib/remoteChannelContext.d.ts.map +1 -1
- package/lib/remoteChannelContext.js +5 -2
- package/lib/remoteChannelContext.js.map +1 -1
- package/package.json +15 -15
- package/src/channelContext.ts +24 -35
- package/src/dataStoreRuntime.ts +19 -22
- package/src/remoteChannelContext.ts +5 -2
package/src/dataStoreRuntime.ts
CHANGED
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
ITelemetryLoggerExt,
|
|
8
|
-
ChildLogger,
|
|
9
8
|
generateStack,
|
|
10
9
|
LoggingError,
|
|
11
|
-
loggerToMonitoringContext,
|
|
12
10
|
MonitoringContext,
|
|
13
11
|
raiseConnectedEvent,
|
|
14
|
-
|
|
12
|
+
createChildMonitoringContext,
|
|
13
|
+
tagCodeArtifacts,
|
|
15
14
|
} from "@fluidframework/telemetry-utils";
|
|
16
15
|
import {
|
|
17
16
|
FluidObject,
|
|
@@ -63,7 +62,6 @@ import {
|
|
|
63
62
|
exceptionToResponse,
|
|
64
63
|
GCDataBuilder,
|
|
65
64
|
requestFluidObject,
|
|
66
|
-
packagePathToTelemetryProperty,
|
|
67
65
|
unpackChildNodesUsedRoutes,
|
|
68
66
|
} from "@fluidframework/runtime-utils";
|
|
69
67
|
import {
|
|
@@ -251,11 +249,13 @@ export class FluidDataStoreRuntime
|
|
|
251
249
|
0x30e /* Id cannot contain slashes. DataStoreContext should have validated this. */,
|
|
252
250
|
);
|
|
253
251
|
|
|
254
|
-
this.mc =
|
|
255
|
-
|
|
252
|
+
this.mc = createChildMonitoringContext({
|
|
253
|
+
logger: dataStoreContext.logger,
|
|
254
|
+
namespace: "FluidDataStoreRuntime",
|
|
255
|
+
properties: {
|
|
256
256
|
all: { dataStoreId: uuid() },
|
|
257
|
-
}
|
|
258
|
-
);
|
|
257
|
+
},
|
|
258
|
+
});
|
|
259
259
|
|
|
260
260
|
this.id = dataStoreContext.id;
|
|
261
261
|
this.options = dataStoreContext.options;
|
|
@@ -578,10 +578,13 @@ export class FluidDataStoreRuntime
|
|
|
578
578
|
return this.audience;
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
public async uploadBlob(
|
|
581
|
+
public async uploadBlob(
|
|
582
|
+
blob: ArrayBufferLike,
|
|
583
|
+
signal?: AbortSignal,
|
|
584
|
+
): Promise<IFluidHandle<ArrayBufferLike>> {
|
|
582
585
|
this.verifyNotClosed();
|
|
583
586
|
|
|
584
|
-
return this.dataStoreContext.uploadBlob(blob);
|
|
587
|
+
return this.dataStoreContext.uploadBlob(blob, signal);
|
|
585
588
|
}
|
|
586
589
|
|
|
587
590
|
public process(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown) {
|
|
@@ -1098,18 +1101,12 @@ export class FluidDataStoreRuntime
|
|
|
1098
1101
|
// in the summarizer and the data will help us plan this.
|
|
1099
1102
|
this.mc.logger.sendTelemetryEvent({
|
|
1100
1103
|
eventName,
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
value: this.id,
|
|
1108
|
-
tag: TelemetryDataTag.CodeArtifact,
|
|
1109
|
-
},
|
|
1110
|
-
fluidDataStorePackagePath: packagePathToTelemetryProperty(
|
|
1111
|
-
this.dataStoreContext.packagePath,
|
|
1112
|
-
),
|
|
1104
|
+
...tagCodeArtifacts({
|
|
1105
|
+
channelType,
|
|
1106
|
+
channelId,
|
|
1107
|
+
fluidDataStoreId: this.id,
|
|
1108
|
+
fluidDataStorePackagePath: this.dataStoreContext.packagePath.join("/"),
|
|
1109
|
+
}),
|
|
1113
1110
|
stack: generateStack(),
|
|
1114
1111
|
});
|
|
1115
1112
|
this.localChangesTelemetryCount--;
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ITelemetryContext,
|
|
21
21
|
} from "@fluidframework/runtime-definitions";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
createChildLogger,
|
|
24
24
|
ITelemetryLoggerExt,
|
|
25
25
|
ThresholdCounter,
|
|
26
26
|
} from "@fluidframework/telemetry-utils";
|
|
@@ -61,7 +61,10 @@ export class RemoteChannelContext implements IChannelContext {
|
|
|
61
61
|
) {
|
|
62
62
|
assert(!this.id.includes("/"), 0x310 /* Channel context ID cannot contain slashes */);
|
|
63
63
|
|
|
64
|
-
this.subLogger =
|
|
64
|
+
this.subLogger = createChildLogger({
|
|
65
|
+
logger: runtime.logger,
|
|
66
|
+
namespace: "RemoteChannelContext",
|
|
67
|
+
});
|
|
65
68
|
|
|
66
69
|
this.services = createChannelServiceEndpoints(
|
|
67
70
|
dataStoreContext.connected,
|