MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / getRuntime

Function getRuntime

packages/elysia/src/sdk.ts:22–28  ·  view source on GitHub ↗

* Get the runtime name and version.

()

Source from the content-addressed store, hash-verified

20 * Get the runtime name and version.
21 */
22function 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.

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected