Override span fields
Force the input, output, name, or other fields on the current span when the auto-captured values aren’t what you want.
By default, Respan captures span input and output from the function arguments and return value. When that isn’t what you want displayed in the trace UI — for example, you want to redact sensitive args, condense a large payload, or surface a different field — override the span at runtime via update_current_span().
Override input & output
Python
Use update_current_span(attributes=...) for overriding displayed input/output. Values must be JSON-serializable strings via json.dumps(...).
You can also update spans after they’ve been logged via the Update Span API.