sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Include more information in `event.contexts` for Node.js

Open timfish opened this issue 3 years ago • 0 comments

Problem Statement

The event contexts.device payload has many properties that are easily accessible from the os module.

Since bundle size is less of a concern in Node, we should probably be including these as a default included integration.

Solution Brainstorm

Many of these are already added to the Electron SDK so they can be moved to Node.js and removed from Electron!

device

  • boot_time
  • arch
  • memory_size
  • free_memory
  • processor_count - I initially opened a separate issue for this since it can also be added to the browser.
  • cpu_description
  • processor_frequency

os

  • version
  • build
  • kernel_version

app

  • app_start_time
  • memory_used (https://github.com/getsentry/develop/pull/658)

culture

  • locale
  • timezone

timfish avatar Jul 30 '22 14:07 timfish