MCPcopy Create free account
hub / github.com/aws/constructs / getTrace

Method getTrace

src/construct.ts:338–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336
337 const node = this;
338 function getTrace() {
339 if (options.stackTraceOverride && options.stackTraceOverride.length > 0) {
340 return options.stackTraceOverride;
341 }
342 const shouldTrace = options.stackTrace ?? false;
343 return shouldTrace ? captureStackTrace(options.traceFromFunction ?? node.addMetadata) : undefined;
344 }
345
346 if (!this._metadata) {
347 this._metadata = [];

Callers

nothing calls this directly

Calls 1

captureStackTraceFunction · 0.90

Tested by

no test coverage detected