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

Method getTrace

src/construct.ts:309–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307
308 const node = this;
309 function getTrace() {
310 if (options.stackTraceOverride && options.stackTraceOverride.length > 0) {
311 return options.stackTraceOverride;
312 }
313 const shouldTrace = options.stackTrace ?? false;
314 return shouldTrace ? captureStackTrace(options.traceFromFunction ?? node.addMetadata) : undefined;
315 }
316
317 if (!this._metadata) {
318 this._metadata = [];

Callers

nothing calls this directly

Calls 1

captureStackTraceFunction · 0.90

Tested by

no test coverage detected