* Get the runtime name and version.
()
| 20 | * Get the runtime name and version. |
| 21 | */ |
| 22 | function getRuntime(): { name: string; version: string } { |
| 23 | if (typeof Bun !== 'undefined') { |
| 24 | return { name: 'bun', version: Bun.version }; |
| 25 | } |
| 26 | |
| 27 | return { name: 'node', version: process.version }; |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Initializes the Sentry Elysia SDK. |