Interface IEntityMetricsAdapter

An interface for gathering metrics about the Entity framework. Information about entity load and mutation operations is piped to an instance of this adapter.

interface IEntityMetricsAdapter {
    incrementDataManagerLoadCount(incrementLoadCountEvent: IncrementLoadCountEvent): void;
    logAuthorizationEvent(authorizationEvent: EntityMetricsAuthorizationEvent): void;
    logDataManagerLoadEvent(loadEvent: EntityMetricsLoadEvent): void;
    logMutatorMutationEvent(mutationEvent: EntityMetricsMutationEvent): void;
}

Implemented by

Methods

  • Called when a dataloader, cache, or database load is initiated via the standard load methods (not equality conjunction or raw). Most commonly used for logging a waterfall to determine dataloader and cache hit rates and ratios.

    Parameters

    Returns void