01.18.2025
Automatic & Manual Span Tracing
- Using the decorator
@tracer.chaintraces the entire function automatically as a Span in Phoenix. The input, output, and status attributes are set based on the function’s parameters and return value. - Using the tracer in a
withclause allows you to trace specific code blocks within a function. You manually define the Span name, input, output, and status.

