Skip to content

ModuleDefinition.instrument() method

Home > @rimitive/core > ModuleDefinition > instrument

Optional: wrap impl for debugging/profiling when instrumentation is enabled

Signature:

instrument?(impl: TImpl, instrumentation: InstrumentationContext, ctx: ServiceContext): TImpl;

Parameter

Type

Description

impl

TImpl

instrumentation

InstrumentationContext

ctx

ServiceContext

Returns:

TImpl