UNPKG

1.03 kBTypeScriptView Raw
1/// <reference types="node" />
2import { readFile, readdir } from 'node:fs';
3import type { AppContext, DeviceContext } from '@sentry/core';
4export declare const readFileAsync: typeof readFile.__promisify__;
5export declare const readDirAsync: typeof readdir.__promisify__;
6interface DeviceContextOptions {
7 cpu?: boolean;
8 memory?: boolean;
9}
10interface ContextOptions {
11 app?: boolean;
12 os?: boolean;
13 device?: DeviceContextOptions | boolean;
14 culture?: boolean;
15 cloudResource?: boolean;
16}
17/**
18 * Capture context about the environment and the device that the client is running on, to events.
19 */
20export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/core").Integration;
21/**
22 * Get app context information from process
23 */
24export declare function getAppContext(): AppContext;
25/**
26 * Gets device information from os
27 */
28export declare function getDeviceContext(deviceOpt: DeviceContextOptions | true): DeviceContext;
29export {};
30//# sourceMappingURL=context.d.ts.map
\No newline at end of file