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

Function getRelease

packages/node-core/src/light/sdk.ts:176–187  ·  view source on GitHub ↗
(release: NodeOptions['release'])

Source from the content-addressed store, hash-verified

174}
175
176function getRelease(release: NodeOptions['release']): string | undefined {
177 if (release !== undefined) {
178 return release;
179 }
180
181 const detectedRelease = getSentryRelease();
182 if (detectedRelease !== undefined) {
183 return detectedRelease;
184 }
185
186 return undefined;
187}
188
189function getTracesSampleRate(tracesSampleRate: NodeOptions['tracesSampleRate']): number | undefined {
190 if (tracesSampleRate !== undefined) {

Callers 1

getClientOptionsFunction · 0.70

Calls 1

getSentryReleaseFunction · 0.90

Tested by

no test coverage detected