- Implements `truncateForTelemetry` to prevent massive strings (like LLM prompts) from staying in memory. - Fixes `runInDevTraceSpan` leaking unclosed spans on aborted or errored async iterators by automatically capturing generator returns.
- Implements `truncateForTelemetry` to prevent massive strings (like LLM prompts) from staying in memory. - Fixes `runInDevTraceSpan` leaking unclosed spans on aborted or errored async iterators by automatically capturing generator returns.