Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4674

Add logging capabilities to the async interval

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      When scheduling a monitoring check, the async interval calculates the duration since the last monitor check.  Internally we use process.hrtime() to calculate the time of execution, which should be monotonically increasing and guarantee that the time since the last monitor check is always calculated to be positive.  However, as a result of this comment and recent AWS lambda issues (issues in environments where timers / clocks may behave strangely), we would like to add a mechanism to log/record this error if it ever occurs.

      Implementation could vary, but options could include logging a process warning, connecting the interval into SDAM and logging a SDAM failure, or something else entirely.

      An additional optional but nice-to-have acceptance criteria would be to enhance the monitor with useful logging capabilities, so that if we encounter issues from users going forward, we have logging capabilities available.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: