RUM JavaScript API - 1.345.1
    Preparing search index...

    Function isEnabled

    • Async wrapper for dynatrace.isEnabled.

      Indicates whether RUM JavaScript is currently enabled, taking into account the opt-in mode settings and the current opt-in (consent) state.

      Parameters

      • timeout: number = DEFAULT_AGENT_TIMEOUT

        Timeout in milliseconds to wait for the RUM JavaScript to be available (default: 10000)

      Returns Promise<boolean>

      true if RUM JavaScript is enabled, otherwise false.

      A DynatraceError if the RUM JavaScript is not available within the timeout, or the namespace is overridden with an incompatible object