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

Function applyDebugMetadata

packages/browser/src/profiling/utils.ts:519–529  ·  view source on GitHub ↗
(resource_paths: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

517 * Applies debug meta data to an event from a list of paths to resources (sourcemaps)
518 */
519export function applyDebugMetadata(resource_paths: ReadonlyArray<string>): DebugImage[] {
520 const client = getClient();
521 const options = client?.getOptions();
522 const stackParser = options?.stackParser;
523
524 if (!stackParser) {
525 return [];
526 }
527
528 return getDebugImagesForResources(stackParser, resource_paths);
529}
530
531/**
532 * Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1).

Callers 2

createProfilePayloadFunction · 0.70

Calls 3

getClientFunction · 0.90
getOptionsMethod · 0.65

Tested by

no test coverage detected