* feat(telemetry): add sensitive span attribute opt-in
Add a telemetry setting and environment override for including sensitive attributes in spans created by the log-to-span bridge. Keep the default filtering behavior for prompt, function_args, and response_text unless explicitly enabled.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
* fix(telemetry): clarify span bridge options
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
* feat(telemetry): populate api response text
Populate response_text on API response telemetry events for non-internal prompts so opted-in bridge spans can include model response bodies.
Exclude thought text from the recorded response text and keep internal prompt responses omitted.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
* docs(telemetry): clarify sensitive span attribute scope
Clarify that the sensitive span attribute setting only controls log-to-span bridge spans, while response text may still reach other telemetry sinks from API response events.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
* fix(telemetry): cap recorded response text
Limit response_text captured for API response telemetry to a bounded length and mark truncated values to avoid oversized OTLP attributes.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
---------
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>