globalping icon indicating copy to clipboard operation
globalping copied to clipboard

Get logs from the probes

Open alexey-yarmosh opened this issue 1 year ago • 3 comments

We need to find the proper way to get logs from the probes. That is required to debug probe issues, monitor the probes state and get notified when JS error happens.

Requirements:

  • error data should be logged in cases like:
    • https://github.com/jsdelivr/globalping-probe/blob/master/src/index.ts#L125
    • https://github.com/jsdelivr/globalping-probe/blob/master/src/lib/updater.ts
    • https://github.com/jsdelivr/globalping-probe/blob/master/src/command/ping-command.ts#L123
  • logs from the probes should be safe for the API, need to make sure broken probe won't take all the newrelic storage space (probably should be combined with https://github.com/jsdelivr/globalping/issues/52 or another way of disabling the probes)
  • most likely winston-socket.io should be used on the probe side, then log data to stdout on the API side.

alexey-yarmosh avatar Feb 16 '23 09:02 alexey-yarmosh