MetadataOptions

class constructs.MetadataOptions(*, stack_trace=None, stack_trace_override=None, trace_from_function=None)

Bases: object

Options for construct.addMetadata().

Parameters:
  • stack_trace (Optional[bool]) – Include stack trace with metadata entry. Default: false

  • stack_trace_override (Optional[Sequence[str]]) – The actual stack trace to be added to the metadata. If this parameter is passed, the stackTrace parameter is ignored.

  • trace_from_function (Any) – A JavaScript function to begin tracing from. This option is ignored unless stackTrace is true. Default: addMetadata()

Attributes

stack_trace

Include stack trace with metadata entry.

Default:

false

stack_trace_override

The actual stack trace to be added to the metadata.

If this parameter is passed, the stackTrace parameter is ignored.

trace_from_function

A JavaScript function to begin tracing from.

This option is ignored unless stackTrace is true.

Default:

addMetadata()