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

Function getInstrumented

packages/cloudflare/src/instrument.ts:52–62  ·  view source on GitHub ↗
(obj: T)

Source from the content-addressed store, hash-verified

50 * or undefined if not found.
51 */
52export function getInstrumented<T>(obj: T): T | undefined {
53 try {
54 if (isWeakMapKey(obj)) {
55 return getInstrumentedMap().get(obj) as T | undefined;
56 }
57
58 return undefined;
59 } catch {
60 return undefined;
61 }
62}
63
64/**
65 * Returns the already-instrumented version of `original` if one exists,

Calls 3

isWeakMapKeyFunction · 0.85
getInstrumentedMapFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected