trace.Options
Immutable, reusable tracing options. Builders leave their receiver unchanged.
Signature
class trace.OptionsImmutable, reusable tracing options. Builders leave their receiver unchanged.
Source:<builtin>/trace/trace.bamlbytes 1254–3030
Fields
_handle
$rust_typeInstance methods
_span
(context
(Compose a shallow patch without reading ambient context.
empty_span
(self) -> trace.Options throws neverSelect Span mode without requesting value capture. Applicable function-policy requests still capture values.
Return a detached snapshot. Mutating it does not change these options.
Change only mode. Null restores the function's default mode.
Snapshot these options, select Span mode, and reserve one invocation's ID. The reservation can cross threads within this runtime, not into another runtime. Reattaching the same reservation, including through an alias, is an error.
span
(Select Span mode and replace all three capture requests. Capture outputs and errors by default; inputs require an explicit request.