fix(telemetry): emit Tool.execute span for MCP and plugin tools (#25452)
This commit is contained in:
@@ -154,7 +154,16 @@ export const layer: Layer.Layer<
|
||||
...(out.truncated && { outputPath: out.outputPath }),
|
||||
},
|
||||
}
|
||||
}),
|
||||
}).pipe(
|
||||
Effect.withSpan("Tool.execute", {
|
||||
attributes: {
|
||||
"tool.name": id,
|
||||
"session.id": toolCtx.sessionID,
|
||||
"message.id": toolCtx.messageID,
|
||||
...(toolCtx.callID ? { "tool.call_id": toolCtx.callID } : {}),
|
||||
},
|
||||
}),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user