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

Function hasLegacyProfiling

packages/browser/src/profiling/utils.ts:731–734  ·  view source on GitHub ↗
(options: BrowserOptions)

Source from the content-addressed store, hash-verified

729 * Checks if legacy profiling is configured.
730 */
731export function hasLegacyProfiling(options: BrowserOptions): boolean {
732 // eslint-disable-next-line typescript/no-deprecated
733 return typeof options.profilesSampleRate !== 'undefined';
734}
735
736/**
737 * Creates a profiling envelope item, if the profile does not pass validation, returns null.

Callers 1

setupFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected