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

Method getTrace

src/construct.ts:325–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323
324 const node = this;
325 function getTrace() {
326 if (options.stackTraceOverride && options.stackTraceOverride.length > 0) {
327 return options.stackTraceOverride;
328 }
329 const shouldTrace = options.stackTrace ?? false;
330 return shouldTrace ? captureStackTrace(options.traceFromFunction ?? node.addMetadata) : undefined;
331 }
332
333 if (!this._metadata) {
334 this._metadata = [];

Callers

nothing calls this directly

Calls 1

captureStackTraceFunction · 0.90

Tested by

no test coverage detected