Overview
nodeContextIntegration reads the Node version, operating system and host name once, when it's registered, and attaches them to every event as contexts:
| Context | Example |
|---|---|
runtime.name | node |
runtime.version | v20.19.4 |
os.name | Linux |
os.version | 6.8.0-45-generic |
os.arch | x64 |
host.name | api-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.