Skip to main content

@fluidframework/devtools Package

Used in conjunction with the Fluid Framework Developer Tools browser extension to allow visualization of and interaction with Fluid data.

To initialize the Devtools alongside your application's IFluidContainer, call initializeDevtools(props).

The Devtools will automatically dispose of themselves upon Window unload, but if you would like to close them earlier, call IDevtools.dispose.

To enable visualization of Telemetry data, you may create a DevtoolsLogger and provide it during Devtools initialization.

For more details and examples, see the package README.

Interfaces

InterfaceAlertsModifiersDescription
ContainerDevtoolsPropsBetasealedProperties for configuring Devtools for an individual IFluidContainer.
DevtoolsPropsBetasealedProperties for configuring IDevtools.
HasContainerKeySystemsealedCommon interface for data associated with a particular Container registered with the Devtools.
IDevtoolsBetasealedFluid Devtools. A single, global instance is used to generate and communicate stats associated with the general Fluid runtime (i.e., it is not associated with any single Framework entity).
IDevtoolsLoggerBetasealedLogger implementation that posts all telemetry events to the window (globalThis object). This logger is intended to integrate with the Fluid DevTools browser extension.

Types

TypeAliasAlertsDescription
ContainerKeyBetaA key used to identify and differentiate Containers registered with the IFluidDevtools.

Functions

FunctionAlertsReturn TypeDescription
createDevtoolsLogger(baseLogger)BetaIDevtoolsLoggerCreates a new IDevtoolsLogger by wrapping the provided (optional) base logger.
initializeDevtools(props)BetaIDevtoolsInitializes the Devtools singleton and returns a handle to it.

Function Details

createDevtoolsLogger

Creates a new IDevtoolsLogger by wrapping the provided (optional) base logger.

This API is provided as a beta preview and may change without notice.

To use, import via @fluidframework/devtools/beta.

For more information about our API support guarantees, see here.

Signature

export declare function createDevtoolsLogger(baseLogger?: ITelemetryBaseLogger): IDevtoolsLogger;

Parameters

ParameterModifiersTypeDescription
baseLoggeroptionalITelemetryBaseLogger

Returns

Return type: IDevtoolsLogger

initializeDevtools

Initializes the Devtools singleton and returns a handle to it.

This API is provided as a beta preview and may change without notice.

To use, import via @fluidframework/devtools/beta.

For more information about our API support guarantees, see here.

Signature

export declare function initializeDevtools(props: DevtoolsProps): IDevtools;

Parameters

ParameterTypeDescription
propsDevtoolsProps

Returns

Return type: IDevtools

See Also

@fluidframework/devtools-core#initializeDevtoolsBase