Impact.Trace (Impact v0.0.1)

Copy Markdown

Manual span helper. Emits the canonical Impact trace attributes:

  • impact.trace.type
  • impact.trace.name
  • impact.trace.path — dot-separated stack of nested manual spans
  • impact.trace.input — best-effort JSON of inputs (when capture_content: true)
  • impact.trace.output — best-effort JSON of outputs (when capture_content: true)

Context attributes from Impact.Context are merged in automatically.

Summary

Functions

with_span(opts, fun)

@spec with_span(
  keyword(),
  (-> any())
) :: any()