Skip to content

Overview ​

nodeContextIntegration reads the Node version, operating system and host name once, when it's registered, and attaches them to every event as contexts:

ContextExample
runtime.namenode
runtime.versionv20.19.4
os.nameLinux
os.version6.8.0-45-generic
os.archx64
host.nameapi-7f9c6d-2xk4q

This is the server-side counterpart of the browser's deviceIntegration. It's how you tell apart errors that only happen on one Node version, or on a single machine or container.

Usage ​

ts
import { use } from '@buglapse/node'
import { nodeContextIntegration } from '@buglapse/node/integrations'

use(nodeContextIntegration())

It has no options.