Skip to content

Add SharedObjectFromKernel #24401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions packages/dds/shared-object-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
"@fluidframework/datastore": "workspace:~",
"@fluidframework/datastore-definitions": "workspace:~",
"@fluidframework/driver-definitions": "workspace:~",
"@fluidframework/id-compressor": "workspace:~",
"@fluidframework/runtime-definitions": "workspace:~",
"@fluidframework/runtime-utils": "workspace:~",
"@fluidframework/telemetry-utils": "workspace:~",
Expand Down
10 changes: 10 additions & 0 deletions packages/dds/shared-object-base/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,13 @@ export {
type IChannelView,
} from "./utils.js";
export { ValueType } from "./valueType.js";
export {
SharedKernel,
thisWrap,
KernelArgs,
makeSharedObjectKind,
SharedKernelFactory,
FactoryOut,
SharedObjectOptions,
mergeAPIs,
} from "./sharedObjectKernel.js";
3 changes: 3 additions & 0 deletions packages/dds/shared-object-base/src/sharedObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,9 @@ export abstract class SharedObject<
id: string,
runtime: IFluidDataStoreRuntime,
attributes: IChannelAttributes,
/**
* The prefix to use for telemetry events emitted by this object.
*/
private readonly telemetryContextPrefix: string,
) {
super(id, runtime, attributes);
Expand Down
Loading
Loading