()
| 23 | } |
| 24 | |
| 25 | function analyticsMetadata() { |
| 26 | return { |
| 27 | os: os.type().toLowerCase(), |
| 28 | oss_version: getOssVersion(), |
| 29 | machine: os.arch(), |
| 30 | platform: os.platform(), |
| 31 | node_version: process.version, |
| 32 | environment: process.env.ENV || 'production', |
| 33 | }; |
| 34 | } |
| 35 | |
| 36 | export function capture(event: any, data = {}) { |
| 37 | if (process.env.MAXUN_TELEMETRY !== 'true') return; |
no test coverage detected