Beignet API reference
    Preparing search index...

    Interface ProviderInstrumentation

    Convenience wrapper used by providers to emit safe, watcher-aware events.

    interface ProviderInstrumentation {
        port:
            | ProviderInstrumentationPort<
                ProviderInstrumentationEvent,
                string,
                unknown,
            >
            | undefined;
        custom(event: ProviderCustomInstrumentationEventInput): unknown;
        isEnabled(watcher?: string): boolean;
        record(event: ProviderInstrumentationEvent): unknown;
    }
    Index

    Properties

    Methods

    Properties

    port:
        | ProviderInstrumentationPort<
            ProviderInstrumentationEvent,
            string,
            unknown,
        >
        | undefined

    Resolved instrumentation port, when one is available.

    Methods

    • Return whether the given watcher is enabled.

      Parameters

      • Optionalwatcher: string

      Returns boolean