Skip to main content

build_tool_span

Function build_tool_span 

Source
pub fn build_tool_span(params: ToolSpanParams<'_>) -> BoxedSpan
Available on crate feature otel only.
Expand description

Open an execute_tool INTERNAL span.

Byte-for-byte mirror of agent_loop::tool_execution::start_tool_span: same span name, same attribute set (operation name, tool name, call id, optional display name, optional tier, kind), same baggage copy, same Langfuse tool observation tag. Finish with finish_tool_span.