fix: guard span name to always be a non-empty string
This commit is contained in:
@@ -99,7 +99,7 @@ export class SessionState {
|
||||
const toolMeta = extractToolMetadata(call.tool, call.args);
|
||||
|
||||
trace.addSpan({
|
||||
name: title,
|
||||
name: title || call.tool || "unknown-tool",
|
||||
type: SpanType.TOOL_CALL,
|
||||
parentSpanId: rootSpanId,
|
||||
input: safeJsonValue(call.args),
|
||||
|
||||
Reference in New Issue
Block a user